This commit is contained in:
James Agnew 2020-03-03 08:27:51 -05:00
parent 13fbdf418f
commit ac9a371f18
1 changed files with 21 additions and 0 deletions

View File

@ -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")));
}
}