Add test
This commit is contained in:
parent
13fbdf418f
commit
ac9a371f18
|
@ -0,0 +1,21 @@
|
|||
package ca.uhn.fhir.rest.param;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class QualifierDetailsTest {
|
||||
|
||||
@Test
|
||||
public void testBlacklist() {
|
||||
|
||||
QualifierDetails details = new QualifierDetails();
|
||||
details.setColonQualifier(":Patient");
|
||||
assertFalse(details.passes(null, Sets.newHashSet(":Patient")));
|
||||
assertTrue(details.passes(null, Sets.newHashSet(":Observation")));
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue