Skip to content

Commit

Permalink
Fixes review remarks
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Espen <Daniel.Espen@iese.fraunhofer.de>
  • Loading branch information
Daespen committed Jul 12, 2023
1 parent 27f6daf commit cd13ede
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public void setAASBundles(Collection<AASBundle> aasBundles) {
* The bundle that will be loaded during startup
*/
public void setAASBundle(AASBundle aasBundle) {
this.aasBundles = new ArrayList<Collection<AASBundle>>();
this.aasBundles = new ArrayList<>();
Collection<AASBundle> firstBundleSet = Collections.singleton(aasBundle);
this.aasBundles.add(firstBundleSet);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,39 +122,6 @@ public void setUp() {
IConnectorFactory connectorFactory = new HTTPConnectorFactory();
manager = new ConnectedAssetAdministrationShellManager(aasRegistry, connectorFactory);
}
// 0
// smart.festo.com/demo/aas/1/1/454576463545648365874={modelType={name=AssetAdministrationShellDescriptor},
// idShort=Festo_3S7PM0CP4BD, identification={idType=IRI,
// id=smart.festo.com/demo/aas/1/1/454576463545648365874},
// endpoints=[{type=http,
// address=http://localhost:4001/aasServer//shells/smart.festo.com%2Fdemo%2Faas%2F1%2F1%2F454576463545648365874/aas}],
// submodels=[{modelType={name=SubmodelDescriptor}, idShort=Nameplate,
// identification={idType=IRI, id=www.company.com/ids/sm/4343_5072_7091_3242},
// endpoints=[{type=http,
// address=http://localhost:4001/aasServer//shells/smart.festo.com%2Fdemo%2Faas%2F1%2F1%2F454576463545648365874/aas/submodels/Nameplate/submodel}]}]}
// 1
// AssetAdministrationShell---51A6D8AE={
// modelType={name=AssetAdministrationShellDescriptor},
// idShort=aasA,
// identification={idType=Custom, id=AssetAdministrationShell---51A6D8AE},
// endpoints=[
// {type=http,
// address=http://localhost:4001/aasServer//shells/AssetAdministrationShell---51A6D8AE/aas}],
// submodels=[
// {modelType={name=SubmodelDescriptor}, idShort=a,
// identification={idType=Custom, id=fileTestA},
// endpoints=[{type=http,
// address=http://localhost:4001/aasServer//shells/smart.festo.com%2Fdemo%2Faas%2F1%2F1%2F454576463545648365874/aas/submodels/a/submodel}]}]}
// 2
// AssetAdministrationShell---51A6D8AF={modelType={name=AssetAdministrationShellDescriptor},
// idShort=aasB, identification={idType=Custom,
// id=AssetAdministrationShell---51A6D8AF}, endpoints=[{type=http,
// address=null}], submodels=[{modelType={name=SubmodelDescriptor}, idShort=b,
// identification={idType=Custom, id=fileTestB}, endpoints=[{type=http,
// address=http://localhost:4001/aasServer//shells/smart.festo.com%2Fdemo%2Faas%2F1%2F1%2F454576463545648365874/aas/submodels/b/submodel}]}]}
// AssetAdministrationShell---51A6D8AF
// not found (A)
// AssetAdministrationShell---51A6D8AE

@Test
public void testGetSingleAAS() throws Exception {
Expand Down

0 comments on commit cd13ede

Please sign in to comment.