File tree Expand file tree Collapse file tree 3 files changed +15
-67
lines changed Expand file tree Collapse file tree 3 files changed +15
-67
lines changed Original file line number Diff line number Diff line change 1
1
2
-
3
2
import static org .junit .Assert .*;
4
3
5
4
import org .junit .Test ;
14
13
import static apgas .Constructs .*;
15
14
16
15
/**
17
- * Test class that checks how the Junit various asserts behave with the APGAS
18
- * remote activities and illustrates how to handle them.
16
+ * Test class that checks how the Junit assertions behave with the APGAS
17
+ * remote activities framework and illustrates how to handle them.
18
+ * <p>
19
+ * A specific launcher included in this library is used: (MpiApgasTestLauncher.class).
20
+ * This launcher will initialize both the APGAS and the MPI environment before
21
+ * launching the tests.
19
22
*/
20
23
@ RunWith (MpiRunner .class )
21
24
@ MpiConfig (ranks =2 , launcher =MpiApgasTestLauncher .class )
22
25
public class TestApgasEnvironment {
23
26
24
27
/**
25
- * Checks that the test is indeed run with multiple places
28
+ * Checks that the test is indeed run with multiple APGAS places
26
29
*/
27
30
@ Test
28
31
public void testMultipleHosts () {
@@ -32,7 +35,7 @@ public void testMultipleHosts() {
32
35
33
36
/**
34
37
* Tests the failure of an assertEquals call in an asynchronous remote
35
- * remote activity.
38
+ * activity.
36
39
*/
37
40
@ Test (expected =java .lang .AssertionError .class )
38
41
public void testRemoteAssertEqualsFailure () throws Throwable {
@@ -49,6 +52,5 @@ public void testRemoteAssertEqualsFailure() throws Throwable {
49
52
Throwable [] suppressed = e .getSuppressed ();
50
53
throw (suppressed [0 ]);
51
54
}
52
-
53
55
}
54
56
}
Original file line number Diff line number Diff line change 1
-
2
-
3
1
import static org .junit .Assert .*;
4
2
5
3
import org .junit .BeforeClass ;
12
10
import mpi .MPI ;
13
11
14
12
/**
15
- * Test class that checks how the Junit various asserts behave with the APGAS
16
- * remote activities and illustrates how to handle them.
13
+ * Test class that demonstrates how the tests are run and
14
+ * how the Junit assertions / failure behave in case they
15
+ * fail.
17
16
*/
18
17
@ RunWith (MpiRunner .class )
19
18
@ MpiConfig (ranks =4 )
20
- public class ITMpiEnvironment {
19
+ public class TestMpiEnvironment {
21
20
22
21
static int rank = -1 ;
23
22
static int size = -1 ;
@@ -27,8 +26,9 @@ public static void beforeClass() throws Exception {
27
26
rank = MPI .COMM_WORLD .Rank ();
28
27
size = MPI .COMM_WORLD .Size ();
29
28
}
30
- /**
31
- * Checks that the test was indeed run with multiple places
29
+
30
+ /**
31
+ * Checks that the test was indeed run with multiple hosts
32
32
*/
33
33
@ Test
34
34
public void testMultipleHosts () {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments