/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.terracotta.context.query;

/**
 *
 * @author cdennis
 */
public class MatchersTest {
  
}

@@ -136,67 +136,1887 @@
 y;%0A%0A
-/**%0A *%0A * @author cdennis%0A */%0Apublic class MatchersTest %7B%0A  
+import java.util.Collections;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A *%0A * @author cdennis%0A */%0Apublic class MatchersTest %7B%0A  %0A  @Test%0A  public void testSubclassOfSameClass() %7B%0A    assertTrue(Matchers.subclassOf(Integer.class).matches(Integer.class));%0A  %7D%0A%0A  @Test%0A  public void testSubclassOfSuperClass() %7B%0A    assertTrue(Matchers.subclassOf(Number.class).matches(Integer.class));%0A  %7D%0A%0A  @Test%0A  public void testSubclassOfInterface() %7B%0A    assertTrue(Matchers.subclassOf(Comparable.class).matches(Integer.class));%0A  %7D%0A%0A  @Test%0A  public void testSubclassOfUnrelatedInterface() %7B%0A    assertFalse(Matchers.subclassOf(CharSequence.class).matches(Integer.class));%0A  %7D%0A%0A  @Test%0A  public void testSubclassOfUnrelatedClass() %7B%0A    assertFalse(Matchers.subclassOf(Runtime.class).matches(Integer.class));%0A  %7D%0A  %0A  @Test%0A  public void testHasAttributeOnEmptyMap() %7B%0A    assertFalse(Matchers.hasAttribute(%22foo%22, %22bar%22).matches(Collections.emptyMap()));%0A  %7D%0A  %0A  public void testHasAttributeOnSingletonMatchingMap() %7B%0A    assertTrue(Matchers.hasAttribute(%22foo%22, %22bar%22).matches(Collections.singletonMap(%22foo%22, %22bar%22)));%0A  %7D%0A  %0A  public void testHasAttributeOnSingletonNonMatchingMap() %7B%0A    assertFalse(Matchers.hasAttribute(%22foo%22, %22bar%22).matches(Collections.singletonMap(%22foo%22, %22baz%22)));%0A  %7D%0A  %0A  public void testHasAttributeOnMatchingMap() %7B%0A    Map%3CString, String%3E map = new HashMap%3CString, String%3E();%0A    map.put(%22foo%22, %22bar%22);%0A    map.put(%22alice%22, %22bob%22);%0A    assertTrue(Matchers.hasAttribute(%22foo%22, %22bar%22).matches(map));%0A  %7D%0A%0A  public void testHasAttributeOnNonMatchingMap() %7B%0A    Map%3CString, String%3E map = new HashMap%3CString, String%3E();%0A    map.put(%22foo%22, %22baz%22);%0A    map.put(%22alice%22, %22bob%22);%0A    assertTrue(Matchers.hasAttribute(%22foo%22, %22bar%22).matches(map));%0A  %7D
 %0A%7D%0A

Add partial matchers coverage