LaunchCode logo
  1. Contents
  2. 6. Unit Testing

6. Unit TestingΒΆ

  1. 6.1. Testing in Java
    1. 6.1.1. Why We Test
      1. 6.1.1.1. Refactoring
      2. 6.1.1.2. Documentation
    2. 6.1.2. Testing Best Practices
    3. 6.1.3. Check Your Understanding
  2. 6.2. JUnit
    1. 6.2.1. Java Annotations
    2. 6.2.2. .jar and Testing Setup
      1. 6.2.2.1. main/Car and test/CarTest
    3. 6.2.3. @Test
    4. 6.2.4. @Before
    5. 6.2.5. @After
    6. 6.2.6. Common Assertion Methods
    7. 6.2.7. Check Your Understanding
  3. 6.3. Exercises: Unit Testing
    1. 6.3.1. testGasTankAfterDriving()
    2. 6.3.2. testGasTankAfterExceedingTankRange()
    3. 6.3.3. testGasOverfillException()
  4. 6.4. Studio: Unit Testing
    1. 6.4.1. Getting Started
    2. 6.4.2. Uploading Your Work
    3. 6.4.3. Bonus Mission
  • ← 5.6. Studio: Restaurant Menu Continued
  • 6.1. Testing in Java →

Back to top

Page Source