@Before public void setUp() throws Exception { versionNames = new HashMap<>(); timeStamps = new TreeMap<>(); Set<AppVersion> versions = new HashSet<>(); SimpleDateFormat format = new SimpleDateFormat("MMMMM dd, yyyy", Locale.ENGLISH); versions.add(new AppVersion(0, format.parse("June 1, 2005"), "v1.0")); versions.add(new AppVersion(1, format.parse("June 10, 2005"), "v1.1")); versions.add(new AppVersion(2, format.parse("June 20, 2005"), "v2.0")); for (AppVersion v : versions) { versionNames.put(v.getReleaseName(), v); timeStamps.put(v.getTimestamp(), v); } }
String codeSize = getOptionalAttribute(attributes, "codeSize"); String numClasses = getOptionalAttribute(attributes, "numClasses"); AppVersion appVersion = new AppVersion(Long.parseLong(sequence)); if (timestamp != null) { appVersion.setTimestamp(Long.parseLong(timestamp));
/** * Get the current AppVersion. */ @Override public AppVersion getCurrentAppVersion() { return new AppVersion(getSequenceNumber()).setReleaseName(getReleaseName()).setTimestamp(getTimestamp()) .setNumClasses(getProjectStats().getNumClasses()).setCodeSize(getProjectStats().getCodeSize()); }
AppVersion origCollectionVersionClone = new AppVersion(lastSequence); origCollectionVersionClone.setTimestamp(origCollectionVersion.getTimestamp()); origCollectionVersionClone.setReleaseName(origCollectionVersion.getReleaseName());
String codeSize = getOptionalAttribute(attributes, "codeSize"); String numClasses = getOptionalAttribute(attributes, "numClasses"); AppVersion appVersion = new AppVersion(Long.parseLong(sequence)); if (timestamp != null) { appVersion.setTimestamp(Long.parseLong(timestamp));
/** * Get the current AppVersion. */ @Override public AppVersion getCurrentAppVersion() { return new AppVersion(getSequenceNumber()).setReleaseName(getReleaseName()).setTimestamp(getTimestamp()) .setNumClasses(getProjectStats().getNumClasses()).setCodeSize(getProjectStats().getCodeSize()); }
AppVersion origCollectionVersionClone = new AppVersion(lastSequence); origCollectionVersionClone.setTimestamp(origCollectionVersion.getTimestamp()); origCollectionVersionClone.setReleaseName(origCollectionVersion.getReleaseName());