@Test public void testSedaVersion() { final SedaVersion sedaVersion = new SedaVersion(); sedaVersion.setBinaryDataObjectVersions(new String[] {"TEST1","TEST2"}); sedaVersion.setPhysicalDataObjectVersions(new String[] {"TEST3","TEST4"}); assertNotNull(sedaVersion.getVersionForType("BinaryDataObject")); assertNotNull(sedaVersion.getVersionForType("PhysicalDataObject")); assertEquals(0, sedaVersion.getVersionForType("Bleah").size()); assertEquals("TEST1", sedaVersion.getVersionForType("BinaryDataObject").get(0)); assertEquals("TEST4", sedaVersion.getVersionForType("PhysicalDataObject").get(1)); }
public SedaVersion() { binaryDataObjectVersions = new ArrayList<String>(); physicalDataObjectVersions = new ArrayList<String>(); }
SedaVersion { public SedaVersion() { binaryDataObjectVersions = new ArrayList<String>(); physicalDataObjectVersions = new ArrayList<String>(); } }
SedaVersion { public SedaVersion() { binaryDataObjectVersions = new ArrayList<String>(); physicalDataObjectVersions = new ArrayList<String>(); } SedaVersion(); }
SedaVersion { public SedaVersion() { binaryDataObjectVersions = new ArrayList<String>(); physicalDataObjectVersions = new ArrayList<String>(); } SedaVersion(); List<String> getVersionForType(String type); List<String> getVersionForOtherType(String type); void setBinaryDataObjectVersions(String[] binaryDataObjectVersions); void setPhysicalDataObjectVersions(String[] physicalDataObjectVersions); boolean isSupportedVesion(final String version); }
SedaVersion { public SedaVersion() { binaryDataObjectVersions = new ArrayList<String>(); physicalDataObjectVersions = new ArrayList<String>(); } SedaVersion(); List<String> getVersionForType(String type); List<String> getVersionForOtherType(String type); void setBinaryDataObjectVersions(String[] binaryDataObjectVersions); void setPhysicalDataObjectVersions(String[] physicalDataObjectVersions); boolean isSupportedVesion(final String version);  }