Package javax.measure.spi
Class ServiceProviderTest
Object
ServiceProviderTest
Tests for
ServiceProvider
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
Tests ServiceProvider#of() by passing a non-existing name.void
Tests ServiceProvider#of() by passing null.void
void
void
void
-
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
-