Java Code Examples for javax.measure.spi.ServiceProvider#available()

The following examples show how to use javax.measure.spi.ServiceProvider#available() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SystemOfUnitsServiceTest.java    From uom-systems with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Test
	public void testOtherUnitSystemServices() {
		Collection<ServiceProvider> services = ServiceProvider.available();
		assertNotNull(services);
		assertEquals(2, services.size());
//	for (ServiceProvider service : services) {
//	    checkService(service);
//	}
	}
 
Example 2
Source File: SystemOfUnitsServiceTest.java    From uom-systems with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Test
  public void testOtherUnitSystemServices() {
Collection<ServiceProvider> services = ServiceProvider.available();
assertNotNull(services);
assertEquals(3, services.size());
// for (SystemOfUnitsService service : services) {
// checkService(service);
// }
  }
 
Example 3
Source File: ServiceProviderTest.java    From uom-systems with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Test
  public void testAvailable() throws Exception {
List<ServiceProvider> providers = ServiceProvider.available();
assertNotNull(providers);
assertFalse(providers.isEmpty());
assertEquals(3, providers.size());
assertEquals("UCUMServiceProvider", providers.get(0).toString());
  }
 
Example 4
Source File: SystemOfUnitsServiceTest.java    From uom-systems with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Test
public void testOtherUnitSystemServices() {
	Collection<ServiceProvider> services = ServiceProvider.available();
	assertNotNull(services);
	assertEquals(3, services.size());
	for (ServiceProvider provider : services) {
		LOGGER.info(String.valueOf(provider));
		// TODO change to DEBUG or lower after https://github.com/unitsofmeasurement/unit-api/issues/195 was resolved
	}
	// for (SystemOfUnitsService service : services) {
	// checkService(service);
	// }
}