- 
    
        
        Logback Set log file name programmaticallyIn Logback, it is easy to set a log file name programmatically : Date: 2019-08-17 View: 2747 
- 
    
        
        Gradle and JUnit exampleIn Gradle, you can declare the JUnit dependency like this: Date: 2019-08-17 View: 1714 
- 
    
        
              Java Swing JOptionPane showInputDialog exampleThis is a review of the showInputDialog() method of JOptionPane Class. With this method we can prompt the user for input while customizing our dialog window. The showConfirmDialog returns either String or Object and can be called using the following combinations of parameters: Date: 2019-08-17 View: 2075 
- 
    
        
        Maven and JUnit exampleIn Maven, you can declare the JUnit dependency like this: Date: 2019-08-17 View: 1560 
- 
    
        
        Hamcrest How to assertThat check null value?Try to check null value with the Hamcrest assertThat assertion, but no idea how? Date: 2019-08-17 View: 1694 
- 
    
        
        JUnit How to test a ListFirst, exclude the JUnit bundled copy of hamcrest-core, and include the useful hamcrest-library, it contains many useful methods to test the List data type. Date: 2019-08-17 View: 1632 
- 
    
        
        JUnit How to test a MapForget about JUnit assertEquals(), to test a Map, uses the more expressive IsMapContaining class from hamcrest-library.jar Date: 2019-08-17 View: 1775 
- 
    
        
              Intellij IDEA How to build project automaticallyBy default, Intellij IDEA doesn’t compile classes automatically. But, you can enable the auto compile feature by following steps : Date: 2019-08-17 View: 1860 
- 
    
        
              Intellij + Infinitest Continuous TestingThe Infinitest is a continuous testing plugin, it helps to run the test automatically. Date: 2019-08-17 View: 1773 
- 
    
        
              JUnit Run test in a particular orderIn JUnit, you can use @FixMethodOrder(MethodSorters.NAME_ASCENDING) to run the test methods by method name, in lexicographic order. Date: 2019-08-17 View: 1443 
- 
    
        
              Java Custom Exception ExamplesIn Java, there are two types of exceptions – checked and unchecked exception. Here’s the summary : Date: 2019-08-17 View: 1640 
- 
    
        
        JUnit Assert if a property exists in a classIncludes hamcrest-library and test the class property and its value with hasProperty() : Date: 2019-08-17 View: 1998 
- 
    
        
        JUnit Categories TestIn JUnit, you can organize the test cases into different categories, and run those categorized test cases with @Categories.ExcludeCategory or @Categories.IncludeCategory Date: 2019-08-17 View: 1459 
- 
    
        
        JUnit + Spring integration exampleIn this tutorial, we will show you how to test the Spring DI components with JUnit frameworks. Date: 2019-08-17 View: 1584 
- 
    
        
              Unit Test What is Mocking? and Why?In simple, mocking is creating objects that mimic the behavior of real objects. Refer to the following case study : Date: 2019-08-17 View: 1598 
