File tree Expand file tree Collapse file tree 4 files changed +31
-23
lines changed
ambassador/src/test/java/com/iluwatar/ambassador Expand file tree Collapse file tree 4 files changed +31
-23
lines changed Original file line number Diff line number Diff line change 2929 */
3030public class AppTest {
3131
32- @ Test
33- public void test () {
34- App .main (new String []{});
35- }
32+ @ Test
33+ public void test () {
34+ App .main (new String []{});
35+ }
3636}
Original file line number Diff line number Diff line change 2424
2525import org .junit .jupiter .api .Test ;
2626
27+ /**
28+ * Test for {@link Client}
29+ */
2730public class ClientTest {
2831
29- @ Test
30- public void test () {
32+ @ Test
33+ public void test () {
3134
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 );
3537
36- }
38+ assert result == 100 || result == -1 ;
39+ }
3740}
Original file line number Diff line number Diff line change 2424
2525import org .junit .jupiter .api .Test ;
2626
27+ /**
28+ * Test for {@link RemoteService}
29+ */
2730public class RemoteServiceTest {
2831
29- @ Test
30- public void test () {
31-
32- RemoteService remoteService = RemoteService .getRemoteService ();
33- long result = remoteService .doRemoteFunction (10 );
32+ @ Test
33+ public void test () {
3434
35- assert result == 100 || result == - 1 ;
36- }
35+ RemoteService remoteService = RemoteService . getRemoteService () ;
36+ long result = remoteService . doRemoteFunction ( 10 );
3737
38+ assert result == 100 || result == -1 ;
39+ }
3840}
Original file line number Diff line number Diff line change 2424
2525import org .junit .jupiter .api .Test ;
2626
27+ /**
28+ * Test for {@link ServiceAmbassador}
29+ */
2730public class ServiceAmbassadorTest {
2831
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+ }
3538}
You can’t perform that action at this time.
0 commit comments