ProductInventoryEntry { public static ProductInventoryEntry createEmpty(String message) { return new ProductInventoryEntry(null, null, 0, 0, 0, message); } private  ProductInventoryEntry(ProductData.UTC startTime, ProductData.UTC stopTime, int length, int processStartLine, int processLength, String message); static ProductInventoryEntry create(String startTime, String stopTime, String length, String processStartLine, String processLength, String message); static ProductInventoryEntry createEmpty(String message); static ProductInventoryEntry createForGoodProduct(Product product, String message); static ProductInventoryEntry createForBadProduct(Product product, String message); ProductData.UTC getStartTime(); ProductData.UTC getStopTime(); int getLength(); void setProcessStartLine(int processStartLine); int getProcessStartLine(); void setProcessLength(int processLength); int getProcessLength(); String getMessage(); String getProductName(); void setProductName(String productName); String toCSVString(); static final int NUM_ENTRIES; static final String DATE_PATTERN; }
@Test public void testCreateEmpty() throws Exception { ProductInventoryEntry entry = ProductInventoryEntry.createEmpty("foo"); assertNotNull(entry); assertEquals("foo", entry.getMessage()); assertEquals(0, entry.getLength()); assertEquals(0, entry.getProcessStartLine()); assertEquals(0, entry.getProcessLength()); }