LiferayDefaultVersionValidator extends LiferayMoreVersionValidator { @Override public List<String> get() { return BladeUtil.getWorkspaceProductKeys(true); }  @Override List<String> get();  }
@Test public void testPromoted() throws Exception { LiferayDefaultVersionValidator ldvv = new LiferayDefaultVersionValidator(); List<String> values = ldvv.get(); Assert.assertTrue(values.size() == 10); }
@Test public void testSort() throws Exception { LiferayDefaultVersionValidator ldvv = new LiferayDefaultVersionValidator(); List<String> vals = ldvv.get(); String first = vals.get(0); Assert.assertTrue(first, first.startsWith("dxp")); String second = vals.get(1); Assert.assertTrue(second, second.startsWith("dxp")); String last = vals.get(vals.size() - 1); Assert.assertTrue(last, last.startsWith("commerce")); }