Initial Commit (#3045)
This commit is contained in:
parent
9685875496
commit
8957b9414c
|
@ -20,9 +20,9 @@ public abstract class ComputerBuilder {
|
||||||
public abstract void addMotherboard();
|
public abstract void addMotherboard();
|
||||||
|
|
||||||
public abstract void setupMotherboard();
|
public abstract void setupMotherboard();
|
||||||
|
|
||||||
public abstract void addProcessor();
|
public abstract void addProcessor();
|
||||||
|
|
||||||
public List<String> getMotherboardSetupStatus() {
|
public List<String> getMotherboardSetupStatus() {
|
||||||
return moterboardSetupStatus;
|
return moterboardSetupStatus;
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class TemplateMethodPatternTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenAllHighEnddParts_whenBuildingComputer_thenTwoParts() {
|
public void givenAllHighEndParts_whenBuildingComputer_thenTwoParts() {
|
||||||
highEndComputerBuilder.buildComputer();
|
highEndComputerBuilder.buildComputer();
|
||||||
assertEquals(2, highEndComputerBuilder.getComputerParts().size());
|
assertEquals(2, highEndComputerBuilder.getComputerParts().size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue