-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94bef8d
commit 994e490
Showing
206 changed files
with
5,659 additions
and
114,093 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
hapi-fhir-base/testmindeps/src/test/java/ca/uhn/fhir/testmindeps/FhirContextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package ca.uhn.fhir.testmindeps; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import org.junit.Test; | ||
|
||
import ca.uhn.fhir.context.FhirContext; | ||
import ca.uhn.fhir.context.RuntimeResourceDefinition; | ||
import ca.uhn.fhir.model.dstu.resource.Patient; | ||
|
||
public class FhirContextTest { | ||
|
||
@Test | ||
public void testWrongVersionDoesntGetInContext1() { | ||
|
||
FhirContext ctx = FhirContext.forDstu1(); | ||
RuntimeResourceDefinition def = ctx.getResourceDefinition("Patient"); | ||
assertEquals(Patient.class, def.getImplementingClass()); | ||
} | ||
|
||
@Test | ||
public void testWrongVersionDoesntGetInContext2() { | ||
|
||
FhirContext ctx = FhirContext.forDstu1(); | ||
RuntimeResourceDefinition def = ctx.getResourceDefinition("Patient"); | ||
assertEquals(Patient.class, def.getImplementingClass()); | ||
|
||
ctx = FhirContext.forDstu1(); | ||
def = ctx.getResourceDefinition(ca.uhn.fhir.model.dev.resource.Patient.class); | ||
assertEquals(ca.uhn.fhir.model.dev.resource.Patient.class, def.getImplementingClass()); | ||
def = ctx.getResourceDefinition("Patient"); | ||
assertEquals(Patient.class, def.getImplementingClass()); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.