Skip to content

Commit b47a97a

Browse files
committed
Update and refactoring
1 parent 02c4eb4 commit b47a97a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

core/esmf-aspect-model-aas-generator/src/main/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private String iriToReversedHostNameNotation( final IRI iri ) {
195195
.filter( StringUtils::isNotBlank )
196196
.collect( Collectors.joining( "." ) );
197197

198-
return reversedHost + "." + path;
198+
return reversedHost + ( path.isEmpty() ? "" : "." + path );
199199
}
200200

201201
private Optional<IRI> iri( final String lexicalRepresentation ) {

core/esmf-aspect-model-aas-generator/src/test/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGeneratorTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@
3636
import org.junit.jupiter.params.ParameterizedTest;
3737
import org.junit.jupiter.params.provider.EnumSource;
3838

39-
public class AasToAspectModelGeneratorTest {
39+
class AasToAspectModelGeneratorTest {
4040

41-
// IDTA-provided sample files can currently not be read with AAS4J
4241
@Test
43-
@Disabled
42+
@Disabled( "IDTA-provided sample files can currently not be read with AAS4J" )
4443
void testTranslateDigitalNameplate() {
4544
final InputStream aasx = AasToAspectModelGeneratorTest.class.getClassLoader()
4645
.getResourceAsStream( "Sample_ZVEI_Digital_Nameplate_V10.aasx" );

0 commit comments

Comments
 (0)