LaunchCode logo
  1. Contents
  2. 6. Unit Testing

6. Unit TestingΒΆ

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

Back to top

Page Source