@Test public void shouldGetProductInfo() { System.setProperty("java.class.path", "src/test/resources/gateway.server-5.0.0.8.jar"); productInfo = getProductInfoInstance(); Assert.assertEquals("5.0.0.8 Beta", productInfo.getVersion()); Assert.assertEquals("Kaazing WebSocket Gateway", productInfo.getTitle()); Assert.assertEquals("Test.Gateway", productInfo.getEdition()); Assert.assertEquals("0", productInfo.getMinor()); Assert.assertEquals("5", productInfo.getMajor()); Assert.assertEquals("0", productInfo.getPatch()); Assert.assertEquals("8 Beta", productInfo.getBuild()); }
public static ProductInfo getProductInfoInstance(){ if (productInfo != null) { return productInfo; } return generateProductInfo(); }
ProductInfoReader { public static ProductInfo getProductInfoInstance(){ if (productInfo != null) { return productInfo; } return generateProductInfo(); } }
ProductInfoReader { public static ProductInfo getProductInfoInstance(){ if (productInfo != null) { return productInfo; } return generateProductInfo(); } private  ProductInfoReader(); }
ProductInfoReader { public static ProductInfo getProductInfoInstance(){ if (productInfo != null) { return productInfo; } return generateProductInfo(); } private  ProductInfoReader(); static ProductInfo getProductInfoInstance(); static void setProductInfo(ProductInfo productInfo); }
ProductInfoReader { public static ProductInfo getProductInfoInstance(){ if (productInfo != null) { return productInfo; } return generateProductInfo(); } private  ProductInfoReader(); static ProductInfo getProductInfoInstance(); static void setProductInfo(ProductInfo productInfo);  }