View source | View content page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Show collection (0 pages)
Collections help

Search

Projects:Upgrade to JUnit 4.11/Technical Specification

Contents

Introduction

This project is basically going to upgrade the JUnit libraries to the latest stable version 4.11. This project will cover the refactor of all the test cases to make them use the new notation

For these changes, there are two possible ways to do future test cases :

Technical Considerations

JUnit 3x Vs JUnit 4.11

It is recommended to use the 4.11 version because it has a lot of improvements. For example:

Features JUnit 3.x Junit 4.x
Test annotation test* pattern @Test
Run at the beginning --- @BeforeClass
Run at the end --- @AfterClass
Run before each test method override setUp() @Before
Run after each test method override tearDown() @After
Ignore test change name method, ... @Ignore
Run at the end --- @AfterClass
Timeouts --- @Test(timeout = 1000)
Exceptions Catch exceptions @Test(expected =Exception.class)

Location of test cases

It have been change the location of the test. Now test case are in different project called OpenbravoTest. There are some changes to explain:

OpenbravoTest    XXX\opensource\openbravo\erp\devel\main\src-test

Retrieved from "http://wiki.openbravo.com/wiki/Projects:Upgrade_to_JUnit_4.11/Technical_Specification"

This page has been accessed 441 times. This page was last modified on 13 August 2014, at 12:21. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.