This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class HistoricalRecord { | |
//bunch of properties here | |
} | |
public class ProductHistoricalRecord extends HistoricalRecord { | |
//bunch of properties here | |
} | |
public class ServiceHistoricalRecord extends HistoricalRecord{ | |
//bunch of properties here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HistoricalRecordControllerTest { | |
@Test | |
public void testRetrieveEmptyList() throws Exception { | |
final HistoricalRecordController recordController = new HistoricalRecordController(); | |
final List<HistoricalRecord> historicalRecords = recordController.listAll(); | |
assertEquals(0, historicalRecords.size()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HistoricalRecordController { | |
public List<HistoricalRecord> listAll() { | |
return Collections.EMPTY_LIST; | |
} | |
} |