Package javax.measure.spi
Class ServiceProviderTest
Object
ServiceProviderTest
Tests for
ServiceProvider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidTests ServiceProvider#of() by passing a non-existing name.voidTests ServiceProvider#of() by passing null.voidvoidvoidvoid
-
Constructor Details
-
ServiceProviderTest
public ServiceProviderTest()
-
-
Method Details
-
testSetCurrentNull
-
testGetAndSetCurrent
TestsServiceProvider.current()andServiceProvider.setCurrent(ServiceProvider). The getter and setter are tested in a single method for avoiding issues with the order in which JUnit executes tests. -
testPriority
-
testOfNull
Tests ServiceProvider#of() by passing null. -
testOfNonExistent
Tests ServiceProvider#of() by passing a non-existing name. -
testGetMetricPrefixes
-
testGetBinaryPrefixes
-
testWrongPrefixType
-
testWrongEnumType
-