Skip to content

Commit 2cd1a6c

Browse files
committed
Fix AASGeneratorTest to use new AspectmodelLoader API
Signed-off-by: Johannes Kristan <[email protected]>
1 parent f9d613f commit 2cd1a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/sds-aspect-model-aas-generator/src/test/java/io/openmanufacturing/sds/aspectmodel/aas/AspectModelAASGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private Environment getAssetAdministrationShellFromAspect( final TestAspect test
260260

261261
private Aspect loadAspect( final TestAspect testAspect ) {
262262
final VersionedModel model = TestResources.getModel( testAspect, KnownVersion.getLatest() ).get();
263-
return AspectModelLoader.fromVersionedModelUnchecked( model );
263+
return AspectModelLoader.getSingleAspect( model ).get();
264264
}
265265

266266
private Environment loadAASX( final ByteArrayOutputStream byteStream ) throws DeserializationException {

0 commit comments

Comments
 (0)