mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-21 12:25:45 +00:00
updates :
- Using lambda expression to create cars - Using spaces instead of tabs in pom.xml
This commit is contained in:
@@ -8,7 +8,7 @@ class CarsFactoryTest {
|
||||
|
||||
@Test
|
||||
void shouldReturnFerrariInstance() {
|
||||
final var ferrari = CarsFactory.getCar(CarsFactory.CarType.FERRARI);
|
||||
final var ferrari = CarsFactory.getCar(CarType.FERRARI);
|
||||
assertTrue(ferrari instanceof Ferrari);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user