Search in sources :

Example 6 with Dimension

use of javax.measure.Dimension in project unit-api by unitsofmeasurement.

the class DimensionTest method testDivide.

@Test
public void testDivide() {
    Dimension dim = TestDimension.getInstance();
    Dimension result = sut.divide(dim);
    assertNotNull(result);
}
Also used : Dimension(javax.measure.Dimension) Test(org.junit.Test)

Example 7 with Dimension

use of javax.measure.Dimension in project unit-api by unitsofmeasurement.

the class DimensionTest method testGetInstance.

@Test
public void testGetInstance() {
    Dimension dim = TestDimension.getInstance();
    assertNotNull(dim);
}
Also used : Dimension(javax.measure.Dimension) Test(org.junit.Test)

Example 8 with Dimension

use of javax.measure.Dimension in project unit-api by unitsofmeasurement.

the class DimensionTest method testMultiply.

@Test
public void testMultiply() {
    Dimension dim = TestDimension.getInstance();
    Dimension result = sut.multiply(dim);
    assertNotNull(result);
}
Also used : Dimension(javax.measure.Dimension) Test(org.junit.Test)

Example 9 with Dimension

use of javax.measure.Dimension in project unit-api by unitsofmeasurement.

the class DimensionTest method testPow.

@Test
public void testPow() {
    Dimension result = sut.pow(2);
    assertNotNull(result);
}
Also used : Dimension(javax.measure.Dimension) Test(org.junit.Test)

Example 10 with Dimension

use of javax.measure.Dimension in project unit-api by unitsofmeasurement.

the class UnitTest method testGetDimension.

/**
 * Test method for {@link javax.measure.test.EnumUnit#getDimension()}.
 */
@Test
public void testGetDimension() {
    final Dimension dim = TestDimension.getInstance();
    assertEquals(dim, sut.getDimension());
}
Also used : Dimension(javax.measure.Dimension) Test(org.junit.Test)

Aggregations

Dimension (javax.measure.Dimension)15 Test (org.junit.Test)7 Map (java.util.Map)3 QuantityDimension (tech.units.indriya.quantity.QuantityDimension)3 Fraction (org.apache.sis.math.Fraction)2 QuantityDimension (tec.uom.se.quantity.QuantityDimension)2 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 UnitConverter (javax.measure.UnitConverter)1 DependsOnMethod (org.apache.sis.test.DependsOnMethod)1 UnconvertibleObjectException (org.apache.sis.util.UnconvertibleObjectException)1 UnsupportedImplementationException (org.apache.sis.util.UnsupportedImplementationException)1 Test (org.junit.jupiter.api.Test)1