check supportsCopyright in a JUnit test
This commit is contained in:
parent
920c3193d0
commit
5c12048749
|
@ -442,7 +442,8 @@ public abstract class CanonicalResource extends DomainResource {
|
|||
/**
|
||||
* @param value A copyright statement relating to the canonical resource and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the canonical resource.
|
||||
*/
|
||||
public abstract CanonicalResource setCopyright(String value);
|
||||
public abstract CanonicalResource setCopyright(String value);
|
||||
|
||||
protected void listChildren(List<Property> children) {
|
||||
super.listChildren(children);
|
||||
}
|
||||
|
|
|
@ -2323,6 +2323,9 @@ public class CompartmentDefinition extends CanonicalResource {
|
|||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
|
||||
|
||||
public boolean supportsCopyright() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -3766,6 +3766,9 @@ public class GraphDefinition extends CanonicalResource {
|
|||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
|
||||
|
||||
public boolean supportsCopyright() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -3875,6 +3875,8 @@ public class SearchParameter extends CanonicalResource {
|
|||
*/
|
||||
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
|
||||
|
||||
|
||||
public boolean supportsCopyright() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
package org.hl7.fhir.r5.test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.hl7.fhir.r5.model.CapabilityStatement;
|
||||
import org.hl7.fhir.r5.model.CodeSystem;
|
||||
import org.hl7.fhir.r5.model.CompartmentDefinition;
|
||||
import org.hl7.fhir.r5.model.ConceptMap;
|
||||
import org.hl7.fhir.r5.model.ExampleScenario;
|
||||
import org.hl7.fhir.r5.model.GraphDefinition;
|
||||
import org.hl7.fhir.r5.model.ImplementationGuide;
|
||||
import org.hl7.fhir.r5.model.MessageDefinition;
|
||||
import org.hl7.fhir.r5.model.NamingSystem;
|
||||
import org.hl7.fhir.r5.model.OperationDefinition;
|
||||
import org.hl7.fhir.r5.model.SearchParameter;
|
||||
import org.hl7.fhir.r5.model.StructureDefinition;
|
||||
import org.hl7.fhir.r5.model.StructureMap;
|
||||
import org.hl7.fhir.r5.model.TerminologyCapabilities;
|
||||
import org.hl7.fhir.r5.model.ValueSet;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class ResourceTests {
|
||||
|
||||
@Test
|
||||
void testSupportsCopyright() {
|
||||
assertTrue(new CodeSystem().supportsCopyright());
|
||||
assertTrue(new ValueSet().supportsCopyright());
|
||||
assertTrue(new ConceptMap().supportsCopyright());
|
||||
assertTrue(new TerminologyCapabilities().supportsCopyright());
|
||||
assertTrue(new CapabilityStatement().supportsCopyright());
|
||||
assertTrue(new StructureDefinition().supportsCopyright());
|
||||
assertTrue(new ImplementationGuide().supportsCopyright());
|
||||
assertTrue(new MessageDefinition().supportsCopyright());
|
||||
assertTrue(new StructureMap().supportsCopyright());
|
||||
assertTrue(new ExampleScenario().supportsCopyright());
|
||||
assertFalse(new SearchParameter().supportsCopyright());
|
||||
assertFalse(new NamingSystem().supportsCopyright());
|
||||
assertFalse(new OperationDefinition().supportsCopyright());
|
||||
assertFalse(new CompartmentDefinition().supportsCopyright());
|
||||
assertFalse(new GraphDefinition().supportsCopyright());
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue