File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 7 files changed +34
-21
lines changed Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .filterer ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
2729
2830class  AppTest  {
31+ 
2932  @ Test 
3033  void  shouldLaunchApp () {
31-     App .main (new  String []{});
34+     assertDoesNotThrow (() ->  App .main (new  String []{}) );
3235  }
3336}
Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .monad ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
2729
2830/** 
2931 * Application Test 
3032 */ 
31- public  class  AppTest  {
33+ 
34+ class  AppTest  {
3235
3336  @ Test 
34-   void  testMain () {
35-     App .main (new  String []{});
37+   void  shouldExecuteApplicationWithoutException () {
38+     assertDoesNotThrow (() ->  App .main (new  String []{}) );
3639  }
3740
3841}
Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .monostate ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
2729
2830/** 
2931 * Application Test Entry 
3032 */ 
31- public  class  AppTest  {
33+ 
34+ class  AppTest  {
3235
3336  @ Test 
34-   void  testMain () {
35-     App .main (new  String []{});
37+   void  shouldExecuteApplicationWithoutException () {
38+     assertDoesNotThrow (() ->  App .main (new  String []{}) );
3639  }
3740
3841}
Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .multiton ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
2729
2830/** 
29-  * Application test  
31+  * Test if the application starts without throwing an exception.  
3032 */ 
31- public  class  AppTest  {
33+ 
34+ class  AppTest  {
3235
3336  @ Test 
34-   void  test () {
35-     App .main (new  String []{});
37+   void  shouldExecuteApplicationWithoutException () {
38+     assertDoesNotThrow (() ->  App .main (new  String []{}) );
3639  }
3740}
Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .object .pool ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
2729
2830/** 
@@ -34,6 +36,6 @@ class AppTest {
3436
3537  @ Test 
3638  void  shouldExecuteApplicationWithoutException () {
37-     App .main (new  String []{});
39+     assertDoesNotThrow (() ->  App .main (new  String []{}) );
3840  }
3941}
Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .parameter .object ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
27- import  org .slf4j .Logger ;
28- import  org .slf4j .LoggerFactory ;
2929
3030/** 
3131 * Application test 
3232 */ 
3333class  AppTest  {
34-   private  static  final  Logger  LOGGER  = LoggerFactory .getLogger (AppTest .class );
35- 
3634  @ Test 
3735  void  shouldExecuteApplicationWithoutException () {
38-     App .main (new  String []{});
39-     LOGGER .info ("Executed successfully without exception." );
36+     assertDoesNotThrow (() -> App .main (new  String []{}));
4037  }
4138}
Original file line number Diff line number Diff line change 2323
2424package  com .iluwatar .saga .orchestration ;
2525
26+ import  static  org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
27+ 
2628import  org .junit .jupiter .api .Test ;
2729
2830/** 
29-  * empty test  
31+  * Test if the application starts without throwing an exception.  
3032 */ 
3133class  SagaApplicationTest  {
3234
3335  @ Test 
34-   void  mainTest () {
35-     SagaApplication .main (new  String []{});
36+   void  shouldExecuteApplicationWithoutException () {
37+     assertDoesNotThrow (() ->  SagaApplication .main (new  String []{}) );
3638  }
3739}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments