// Path: projects/main/src/main/java/libshapedraw/internal/LSDModDirectory.java
// public class LSDModDirectory {
//     public static final File DIRECTORY = new File(getMinecraftDir(), "mods" + File.separator + ApiInfo.getName());
// 
//     /**
//      * Use reflection to invoke the static method. This supports both normal
//      * play (reobfuscated minecraft.jar) and development (deobfuscated classes
//      * in MCP).
//      */
//     private static File getMinecraftDir() {
//         try {
//             Method m;
//             try {
//                 m = Minecraft.class.getMethod("b");
//             } catch (NoSuchMethodException e) {
//                 m = Minecraft.class.getMethod("getMinecraftDir");
//             }
//             return (File) m.invoke(null);
//         } catch (Exception e) {
//             throw new LSDInternalReflectionException("unable to invoke Minecraft.getMinecraftDir", e);
//         }
//     }
// }


import org.junit.Test;
import static org.junit.Assert.*;
import java.net.URL;
import libshapedraw.internal.LSDModDirectory;
package libshapedraw;





public class TestApiInfo extends SetupTestEnvironment.TestCase {
    @SuppressWarnings("deprecation")
    @Test
    public void testStaticMethods() {
        assertEquals("LibShapeDraw", ApiInfo.getName());

        assertFalse(ApiInfo.getVersion().isEmpty());

        assertValidHttpUrl(ApiInfo.getUrlMain());
        assertValidHttpUrl(ApiInfo.getUrlShort());
        assertValidHttpUrl(ApiInfo.getUrlSource());
        assertValidHttpUrl(ApiInfo.getUrlUpdate());

        assertEquals(ApiInfo.getUrlMain().toString(), ApiInfo.getUrl());

        assertFalse(ApiInfo.getAuthors().isEmpty());

// Path: projects/main/src/main/java/libshapedraw/internal/LSDModDirectory.java
// public class LSDModDirectory {
//     public static final File DIRECTORY = new File(getMinecraftDir(), "mods" + File.separator + ApiInfo.getName());
// 
//     /**
//      * Use reflection to invoke the static method. This supports both normal
//      * play (reobfuscated minecraft.jar) and development (deobfuscated classes
//      * in MCP).
//      */
//     private static File getMinecraftDir() {
//         try {
//             Method m;
//             try {
//                 m = Minecraft.class.getMethod("b");
//             } catch (NoSuchMethodException e) {
//                 m = Minecraft.class.getMethod("getMinecraftDir");
//             }
//             return (File) m.invoke(null);
//         } catch (Exception e) {
//             throw new LSDInternalReflectionException("unable to invoke Minecraft.getMinecraftDir", e);
//         }
//     }
// }


// Path: projects/main/src/test/java/libshapedraw/TestApiInfo.java
import org.junit.Test;
import static org.junit.Assert.*;
import java.net.URL;
import libshapedraw.internal.LSDModDirectory;

package libshapedraw;





public class TestApiInfo extends SetupTestEnvironment.TestCase {
    @SuppressWarnings("deprecation")
    @Test
    public void testStaticMethods() {
        assertEquals("LibShapeDraw", ApiInfo.getName());

        assertFalse(ApiInfo.getVersion().isEmpty());

        assertValidHttpUrl(ApiInfo.getUrlMain());
        assertValidHttpUrl(ApiInfo.getUrlShort());
        assertValidHttpUrl(ApiInfo.getUrlSource());
        assertValidHttpUrl(ApiInfo.getUrlUpdate());

        assertEquals(ApiInfo.getUrlMain().toString(), ApiInfo.getUrl());

        assertFalse(ApiInfo.getAuthors().isEmpty());

        assertEquals(ApiInfo.getModDirectory(), LSDModDirectory.DIRECTORY);