File tree 4 files changed +31
-23
lines changed
ambassador/src/test/java/com/iluwatar/ambassador
4 files changed +31
-23
lines changed Original file line number Diff line number Diff line change 29
29
*/
30
30
public class AppTest {
31
31
32
- @ Test
33
- public void test () {
34
- App .main (new String []{});
35
- }
32
+ @ Test
33
+ public void test () {
34
+ App .main (new String []{});
35
+ }
36
36
}
Original file line number Diff line number Diff line change 24
24
25
25
import org .junit .jupiter .api .Test ;
26
26
27
+ /**
28
+ * Test for {@link Client}
29
+ */
27
30
public class ClientTest {
28
31
29
- @ Test
30
- public void test () {
32
+ @ Test
33
+ public void test () {
31
34
32
- Client client = new Client ();
33
- long result = client .useService (10 );
34
- assert result == 100 || result == -1 ;
35
+ Client client = new Client ();
36
+ long result = client .useService (10 );
35
37
36
- }
38
+ assert result == 100 || result == -1 ;
39
+ }
37
40
}
Original file line number Diff line number Diff line change 24
24
25
25
import org .junit .jupiter .api .Test ;
26
26
27
+ /**
28
+ * Test for {@link RemoteService}
29
+ */
27
30
public class RemoteServiceTest {
28
31
29
- @ Test
30
- public void test () {
31
-
32
- RemoteService remoteService = RemoteService .getRemoteService ();
33
- long result = remoteService .doRemoteFunction (10 );
32
+ @ Test
33
+ public void test () {
34
34
35
- assert result == 100 || result == - 1 ;
36
- }
35
+ RemoteService remoteService = RemoteService . getRemoteService () ;
36
+ long result = remoteService . doRemoteFunction ( 10 );
37
37
38
+ assert result == 100 || result == -1 ;
39
+ }
38
40
}
Original file line number Diff line number Diff line change 24
24
25
25
import org .junit .jupiter .api .Test ;
26
26
27
+ /**
28
+ * Test for {@link ServiceAmbassador}
29
+ */
27
30
public class ServiceAmbassadorTest {
28
31
29
- @ Test
30
- public void test () {
31
- ServiceAmbassador ambassador = new ServiceAmbassador ();
32
- long result = ambassador .doRemoteFunction (10 );
33
- assert result == 100 || result == -1 ;
34
- }
32
+ @ Test
33
+ public void test () {
34
+ ServiceAmbassador ambassador = new ServiceAmbassador ();
35
+ long result = ambassador .doRemoteFunction (10 );
36
+ assert result == 100 || result == -1 ;
37
+ }
35
38
}
You can’t perform that action at this time.
0 commit comments