package com.karateca.jstoolbox.torelated;

import org.hamcrest.Matchers;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

import static org.junit.Assert.*;

public class CandidateFinderTest {

  @Test
  public void shouldFindCandidates() {
    List<String> fromSuffixes = Arrays.asList(".js", "-controller.js");
    List<String> toSuffixes = Arrays.asList("_spec.js", "-spec.js");

    List<String> candidates = CandidateFinder.suggestDestinationFiles(
        "foo-controller.js", fromSuffixes, toSuffixes);

    assertThat(candidates, Matchers.containsInAnyOrder(
        "foo-controller_spec.js",
        "foo-controller-spec.js",
        "foo-spec.js",
        "foo_spec.js"));
  }
}
@@ -40,38 +40,8 @@
 d;%0A%0A
-import org.hamcrest.Matchers;%0A
 impo
@@ -511,62 +511,73 @@
 sert
-That(candidates, Matchers.containsInAnyOrder(%0A        
+Equals(4, candidates.size());%0A    assertTrue(candidates.contains(
 %22foo
@@ -592,34 +592,63 @@
 ler_spec.js%22
-,
+));
 %0A    
-    
+assertTrue(candidates.contains(
 %22foo-control
@@ -655,34 +655,63 @@
 ler-spec.js%22
-,
+));
 %0A    
-    
+assertTrue(candidates.contains(
 %22foo-spec.js
@@ -715,18 +715,47 @@
 .js%22
-,
+));
 %0A    
-    
+assertTrue(candidates.contains(
 %22foo

Remove hamcrest