use of software.amazon.awssdk.services.s3.model in project libSBOLj by SynBioDex.
the class SBOLDocumentTest method test_docModelMethods.
@Test
public void test_docModelMethods() throws SBOLValidationException {
Model model = doc.createModel("pIKE_Toggle_1", "1.0", URI.create("http://virtualparts.org/part/pIKE_Toggle_1"), URI.create("http://identifiers.org/edam/format_2585"), SystemsBiologyOntology.CONTINUOUS_FRAMEWORK);
assertTrue(doc.getModels().size() == 1);
assertTrue(doc.getModel("pIKE_Toggle_1", "").equals(model));
doc.clearModels();
assertTrue(doc.getModels().size() == 0);
}
use of software.amazon.awssdk.services.s3.model in project ddf by codice.
the class KmlModelToJtsPointConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlModelToJtsPointConverterTest.class.getResourceAsStream("/kmlModel.kml");
Kml kml = Kml.unmarshal(stream);
testKmlModel = ((Model) ((Placemark) kml.getFeature()).getGeometry());
}
use of software.amazon.awssdk.services.s3.model in project ddf by codice.
the class KmlModelToJtsPointConverterTest method testConvertEmptyKmlModelReturnsNullPoint.
@Test
public void testConvertEmptyKmlModelReturnsNullPoint() {
Point jtsPoint = KmlModelToJtsPointConverter.from(new Model());
assertThat(jtsPoint, nullValue());
}
use of software.amazon.awssdk.services.s3.model in project xtext-core by eclipse.
the class Bug299395TestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == Bug299395Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug299395Package.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug299395Package.SUB_MODEL:
sequence_SubModel(context, (SubModel) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of software.amazon.awssdk.services.s3.model in project xtext-core by eclipse.
the class Bug305397SemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == Bug305397Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug305397Package.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case Bug305397Package.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations