public class ToolTests extends Object
Tools.| Constructor and Description |
|---|
ToolTests() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
advanceIgnored(int pos,
String name)
Returns an advanced
pos if characters to be ignored are at pos. |
private static void |
assertEquals(Enum<?> t1,
Enum<?> t2)
Asserts whether two enum constants are considered to be qqual.
|
private static void |
assertIIdentifier(String expectedId,
org.eclipse.basyx.submodel.metamodel.api.identifier.IdentifierType expectedType,
org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier id)
Asserts properties of an identifier.
|
private static boolean |
equalsNormalized(String name1,
String name2)
Tests for normalized name equality, i.e., lower case and '_' ignored.
|
void |
testAssetKind()
Tests the asset kinds.
|
void |
testCheckId()
Tests short id checks.
|
void |
testCheckUrn()
Tests URN checks.
|
void |
testGetOption()
Tests the get option function.
|
void |
testPropertyType()
Tests the property types.
|
void |
testTranslateIdentifier()
Tests the translate identifier function.
|
void |
testTranslateReference()
Tests
Tools.translateReference(String). |
private static int advanceIgnored(int pos,
String name)
pos if characters to be ignored are at pos.pos - the current pos in namename - the name to check the characters for advancing forpos or advanced posprivate static boolean equalsNormalized(String name1, String name2)
name1 - the first name to be checkedname2 - the second name to be checkedtrue for equal, false elseprivate static void assertEquals(Enum<?> t1, Enum<?> t2)
t1 - the first constantt2 - the second constantpublic void testPropertyType()
public void testAssetKind()
public void testCheckId()
public void testCheckUrn()
public void testGetOption()
public void testTranslateIdentifier()
public void testTranslateReference()
Tools.translateReference(String).private static void assertIIdentifier(String expectedId, org.eclipse.basyx.submodel.metamodel.api.identifier.IdentifierType expectedType, org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier id)
expectedId - the expected IDexpectedType - the expected typeid - the id to testCopyright © 2021. All rights reserved.