package unit;

import identify.JavaIdentify;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.io.File;

public class JavaIdentifyTest {

    private final String POM_FILE = "/pom.xml";
    private static final String CURRENT_PROJECT_ABS_PATH = "/Users/nexmaniosis/testinglibs";
    private static final String PROJECT_ABS_PATH = "/Users/nexmaniosis/Google Drive/Universidad/TestingLibs - DOCS/testng/";

    private static JavaIdentify identifyObject;

    @BeforeAll
    static void init(){
        identifyObject = new JavaIdentify(PROJECT_ABS_PATH);
    }

    @Test
    void getPom() {
        assertEquals(new File(PROJECT_ABS_PATH+POM_FILE), identifyObject.getKeyFile(), "Get pom.xml");
    }

    @Test
    void getJunit5() {
        assertEquals("junit-jupiter-engine", identifyObject.getJunit5ArtefactID(), "Find junit-jupiter-engine");
    }

    @Test
    void checkPom() {
        assertEquals(true, identifyObject.checkKeyFile(), "CheckPom returns true");
    }

    @Test
    void checkJunit5() {
        assertEquals(true, identifyObject.checkJunit5(), "CheckJunit5 returns true");
    }

    @Test
    void checkTestNG() {
        assertEquals(true, identifyObject.checkTestNG(), "CheckTestNG returns true");
    }
}

@@ -490,14 +490,28 @@
 OCS/
-testng
+junit5-vanilla-maven
 /%22;%0A
@@ -1259,35 +1259,36 @@
    assertEquals(
-tru
+fals
 e, identifyObjec
@@ -1317,32 +1317,33 @@
 kTestNG returns 
-tru
+fals
 e%22);%0A    %7D%0A%7D%0A

TestNG returns false