Search in sources :

Example 1 with ManualProcessId

use of com.arjuna.ats.internal.arjuna.utils.ManualProcessId in project narayana by jbosstm.

the class ProcessIdUnitTest method testManualProcessId.

@Test
public void testManualProcessId() {
    arjPropertyManager.getCoreEnvironmentBean().setPid(1);
    ManualProcessId mp = new ManualProcessId();
    assertTrue(mp.getpid() == 1);
}
Also used : ManualProcessId(com.arjuna.ats.internal.arjuna.utils.ManualProcessId) Test(org.junit.Test)

Aggregations

ManualProcessId (com.arjuna.ats.internal.arjuna.utils.ManualProcessId)1 Test (org.junit.Test)1