Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

How to test my project ?

Maven

Guillaume Barazer Alexandre Verry

Introduction
- What is Maven ? - Why do we use it ?

2

Summary

3

1. Management
What Maven permit us to:

4

2. Test tools

5

a. JUnit
- Java test framework
- Provide functions to realize tests
- Usage with an add function:

6

Surefire
Generate
reports
Statistics:
regression ?

7

c. Cobertura

8

3. Example
@Test
public void  testDiv() {
Integer div = Calculatrice.div( 4 , 2 );
Assert.assertEquals( Interger.valueOf(2), div);

Integer div = Calculatrice.div( null , 2 );
Assert.assertNull( div );
}

9

4. Conclusion

10
Any questions ?

Use a spacebar or arrow keys to navigate