File tree 7 files changed +34
-21
lines changed
filterer/src/test/java/com/iluwatar/filterer
monad/src/test/java/com/iluwatar/monad
monostate/src/test/java/com/iluwatar/monostate
multiton/src/test/java/com/iluwatar/multiton
object-pool/src/test/java/com/iluwatar/object/pool
parameter-object/src/test/java/com/iluwatar/parameter/object
saga/src/test/java/com/iluwatar/saga/orchestration
7 files changed +34
-21
lines changed Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .filterer ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
29
28
30
class AppTest {
31
+
29
32
@ Test
30
33
void shouldLaunchApp () {
31
- App .main (new String []{});
34
+ assertDoesNotThrow (() -> App .main (new String []{}) );
32
35
}
33
36
}
Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .monad ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
29
28
30
/**
29
31
* Application Test
30
32
*/
31
- public class AppTest {
33
+
34
+ class AppTest {
32
35
33
36
@ Test
34
- void testMain () {
35
- App .main (new String []{});
37
+ void shouldExecuteApplicationWithoutException () {
38
+ assertDoesNotThrow (() -> App .main (new String []{}) );
36
39
}
37
40
38
41
}
Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .monostate ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
29
28
30
/**
29
31
* Application Test Entry
30
32
*/
31
- public class AppTest {
33
+
34
+ class AppTest {
32
35
33
36
@ Test
34
- void testMain () {
35
- App .main (new String []{});
37
+ void shouldExecuteApplicationWithoutException () {
38
+ assertDoesNotThrow (() -> App .main (new String []{}) );
36
39
}
37
40
38
41
}
Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .multiton ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
29
28
30
/**
29
- * Application test
31
+ * Test if the application starts without throwing an exception.
30
32
*/
31
- public class AppTest {
33
+
34
+ class AppTest {
32
35
33
36
@ Test
34
- void test () {
35
- App .main (new String []{});
37
+ void shouldExecuteApplicationWithoutException () {
38
+ assertDoesNotThrow (() -> App .main (new String []{}) );
36
39
}
37
40
}
Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .object .pool ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
29
28
30
/**
@@ -34,6 +36,6 @@ class AppTest {
34
36
35
37
@ Test
36
38
void shouldExecuteApplicationWithoutException () {
37
- App .main (new String []{});
39
+ assertDoesNotThrow (() -> App .main (new String []{}) );
38
40
}
39
41
}
Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .parameter .object ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
- import org .slf4j .Logger ;
28
- import org .slf4j .LoggerFactory ;
29
29
30
30
/**
31
31
* Application test
32
32
*/
33
33
class AppTest {
34
- private static final Logger LOGGER = LoggerFactory .getLogger (AppTest .class );
35
-
36
34
@ Test
37
35
void shouldExecuteApplicationWithoutException () {
38
- App .main (new String []{});
39
- LOGGER .info ("Executed successfully without exception." );
36
+ assertDoesNotThrow (() -> App .main (new String []{}));
40
37
}
41
38
}
Original file line number Diff line number Diff line change 23
23
24
24
package com .iluwatar .saga .orchestration ;
25
25
26
+ import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27
+
26
28
import org .junit .jupiter .api .Test ;
27
29
28
30
/**
29
- * empty test
31
+ * Test if the application starts without throwing an exception.
30
32
*/
31
33
class SagaApplicationTest {
32
34
33
35
@ Test
34
- void mainTest () {
35
- SagaApplication .main (new String []{});
36
+ void shouldExecuteApplicationWithoutException () {
37
+ assertDoesNotThrow (() -> SagaApplication .main (new String []{}) );
36
38
}
37
39
}
You can’t perform that action at this time.
0 commit comments