Skip to content

Commit

Permalink
Merge pull request #735 from arvindsv/716_fix_build
Browse files Browse the repository at this point in the history
#716 - Missing import statements. Fixing build.
  • Loading branch information
arvindsv committed Nov 25, 2014
2 parents 240251d + 5c45e8f commit bf9b8da
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions common/test/com/thoughtworks/go/domain/MaterialRevisionsTest.java
Expand Up @@ -16,10 +16,6 @@

package com.thoughtworks.go.domain;

import java.util.Arrays;
import java.util.Date;
import java.util.Map;

import com.thoughtworks.go.config.CaseInsensitiveString;
import com.thoughtworks.go.config.materials.Filter;
import com.thoughtworks.go.config.materials.Materials;
Expand All @@ -34,13 +30,11 @@
import org.junit.Before;
import org.junit.Test;

import static com.thoughtworks.go.helper.ModificationsMother.TWO_DAYS_AGO_CHECKIN;
import static com.thoughtworks.go.helper.ModificationsMother.aCheckIn;
import static com.thoughtworks.go.helper.ModificationsMother.dependencyMaterialRevision;
import static com.thoughtworks.go.helper.ModificationsMother.empty;
import static com.thoughtworks.go.helper.ModificationsMother.modifyOneFile;
import static com.thoughtworks.go.helper.ModificationsMother.multipleModifications;
import static com.thoughtworks.go.helper.ModificationsMother.oneModifiedFile;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;

import static com.thoughtworks.go.helper.ModificationsMother.*;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNull.nullValue;
import static org.junit.Assert.assertThat;
Expand Down Expand Up @@ -70,7 +64,7 @@ public void setUp() {
@Test
public void shouldReturnModificationsForAGivenMaterial() {
MaterialRevisions oneMaterialRevision = new MaterialRevisions(new MaterialRevision(material, yesterdayMod));
assertThat(oneMaterialRevision.getModifications(material),is(new Modifications(yesterdayMod)));
assertThat(oneMaterialRevision.getModifications(material), is(new Modifications(yesterdayMod)));

MaterialRevisions emptyMaterialRevision = new MaterialRevisions();
assertThat(emptyMaterialRevision.getModifications(material).isEmpty(), is(true));
Expand Down

0 comments on commit bf9b8da

Please sign in to comment.