Datasheet rework, more data added

This commit is contained in:
Bane Stojkovic
2022-11-05 21:11:29 +01:00
parent 69895fdc3f
commit 9d9de0bb4d
9 changed files with 705 additions and 643 deletions
@@ -35,8 +35,8 @@ public class CapacitorDimensionServiceTests {
CapacitorDatasheet dim = CapacitorDatasheetService.getInstance().lookup(AxialFilmCapacitor.class,
"Mallory 150", new Voltage(63d, VoltageUnit.V), new Capacitance(0.22d, CapacitanceUnit.uF));
Assert.assertNotNull(dim);
Assert.assertEquals(new Size(16.5, SizeUnit.mm).convertToPixels(), dim.getLength(), 0.0001);
Assert.assertEquals(new Size(6d, SizeUnit.mm).convertToPixels(), dim.getWidth(), 0.0001);
Assert.assertEquals(new Size(16.5, SizeUnit.mm).convertToPixels(), dim.getLength().convertToPixels(), 0.0001);
Assert.assertEquals(new Size(6d, SizeUnit.mm).convertToPixels(), dim.getWidth().convertToPixels(), 0.0001);
}
@Test
@@ -44,7 +44,7 @@ public class CapacitorDimensionServiceTests {
CapacitorDatasheet dim = CapacitorDatasheetService.getInstance().lookup(AxialFilmCapacitor.class,
"Mallory 150", new Voltage(63d, VoltageUnit.V), new Capacitance(0.23d, CapacitanceUnit.uF));
Assert.assertNotNull(dim);
Assert.assertEquals(new Size(16.5, SizeUnit.mm).convertToPixels(), dim.getLength(), 0.0001);
Assert.assertEquals(new Size(6d, SizeUnit.mm).convertToPixels(), dim.getWidth(), 0.0001);
Assert.assertEquals(new Size(16.5, SizeUnit.mm).convertToPixels(), dim.getLength().convertToPixels(), 0.0001);
Assert.assertEquals(new Size(6d, SizeUnit.mm).convertToPixels(), dim.getWidth().convertToPixels(), 0.0001);
}
}