Search in sources :

Example 6 with ProcessInfo

use of com.seleniumtests.util.osutility.ProcessInfo in project seleniumRobot by bhecquet.

the class TestProcessInfo method testObjectNotEquals.

@Test(groups = { "ut" })
public void testObjectNotEquals() {
    ProcessInfo pi = new ProcessInfo();
    Integer huit = 8;
    assertNotEquals(pi, huit);
}
Also used : ProcessInfo(com.seleniumtests.util.osutility.ProcessInfo) MockitoTest(com.seleniumtests.MockitoTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 7 with ProcessInfo

use of com.seleniumtests.util.osutility.ProcessInfo in project seleniumRobot by bhecquet.

the class TestProcessInfo method testIfToString.

@Test(groups = { "ut" })
public void testIfToString() {
    ProcessInfo pi = new ProcessInfo();
    pi.setMemUsage(2);
    String piString = pi.toString();
    assertEquals(piString, "Process #null = null ; session=null, #0 ;  2 Ko ; status=null ; username=null ; null ; title=\"null\"");
}
Also used : ProcessInfo(com.seleniumtests.util.osutility.ProcessInfo) MockitoTest(com.seleniumtests.MockitoTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 8 with ProcessInfo

use of com.seleniumtests.util.osutility.ProcessInfo in project seleniumRobot by bhecquet.

the class TestProcessInfo method testIfToStringComplete.

@Test(groups = { "ut" })
public void testIfToStringComplete() {
    ProcessInfo pi = new ProcessInfo();
    pi.setPid("8");
    pi.setName("pi");
    pi.setSessionName("meduse");
    pi.setSessionNumber(5);
    pi.setMemUsage(8);
    pi.setStatus("true");
    pi.setUsername("medusa");
    pi.setCpuTime("11/11/11");
    pi.setTitle("C:/");
    String piString = pi.toString();
    assertEquals(piString, "Process #8 = pi ; session=meduse, #5 ;  8 Ko ; status=true ; username=medusa ; 11/11/11 ; title=\"C:/\"");
}
Also used : ProcessInfo(com.seleniumtests.util.osutility.ProcessInfo) MockitoTest(com.seleniumtests.MockitoTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 9 with ProcessInfo

use of com.seleniumtests.util.osutility.ProcessInfo in project seleniumRobot by bhecquet.

the class TestProcessInfo method testObjectStringNotEquals.

@Test(groups = { "ut" })
public void testObjectStringNotEquals() {
    ProcessInfo pi = new ProcessInfo();
    pi.setPid("8");
    pi.setName("pi");
    pi.setSessionName("meduse");
    pi.setSessionNumber(5);
    pi.setMemUsage(8);
    pi.setStatus("true");
    pi.setUsername("medusa");
    pi.setCpuTime("11/11/11");
    pi.setTitle("C:/");
    ProcessInfo info = new ProcessInfo();
    info.setPid("8");
    info.setName("info");
    info.setSessionName("meduse");
    info.setSessionNumber(4);
    info.setMemUsage(8);
    info.setStatus("false");
    info.setUsername("medusa");
    info.setCpuTime("11/11/11");
    info.setTitle("C:/");
    assertNotEquals(pi, info);
}
Also used : ProcessInfo(com.seleniumtests.util.osutility.ProcessInfo) MockitoTest(com.seleniumtests.MockitoTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Example 10 with ProcessInfo

use of com.seleniumtests.util.osutility.ProcessInfo in project seleniumRobot by bhecquet.

the class TestProcessInfo method testToString.

@Test(groups = { "ut" })
public void testToString() {
    ProcessInfo pi = new ProcessInfo();
    pi.setPid("8");
    pi.setName("pi");
    String piString = pi.toString();
    assertEquals(piString, "Process #8 = pi", "ProcessInfo non String");
}
Also used : ProcessInfo(com.seleniumtests.util.osutility.ProcessInfo) MockitoTest(com.seleniumtests.MockitoTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest)

Aggregations

ProcessInfo (com.seleniumtests.util.osutility.ProcessInfo)16 GenericTest (com.seleniumtests.GenericTest)15 Test (org.testng.annotations.Test)15 MockitoTest (com.seleniumtests.MockitoTest)8 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)8 ConfigurationException (com.seleniumtests.customexception.ConfigurationException)1