Commit 15c8e7b3 authored by mey's avatar mey
Browse files

formatted, organized imports

parent 2b72204a
......@@ -7,8 +7,8 @@ import org.jscience.physics.amount.Amount;
/**
* Storage with an amount that can be changed. There are two different methods
* for changing the stored amount. {@link #add(Amount)} may store the given
* amount differently and report about it while {@link #store(Amount)} changes the
* storage by exactly the given amount report about the one required and may
* amount differently and report about it while {@link #store(Amount)} changes
* the storage by exactly the given amount report about the one required and may
* fail.
*
* @author mey
......
......@@ -33,7 +33,6 @@ public class AbstractLimitedStoragePipelineTest implements Serializable {
// amount will exceed lower limit, so the maximum will be drained
private static final Amount<Dimensionless> DRAINED = STORED_IN.divide(FACTOR_OUT);
private long timePassed;
@Before
......
......@@ -42,7 +42,6 @@ public class ConfigurableStorageTest {
assertThat(storage.getValue(), is(CHANGE_AMOUNT.getEstimatedValue()));
}
@Test
public void addOnFactorsAndLimits() {
ConfigurableStorage<Dimensionless> storage = new LimitedTestStorage();
......@@ -79,7 +78,6 @@ public class ConfigurableStorageTest {
assertTrue("Storage not at lower limit", storage.atLowerLimit());
}
@Test
public void store() {
ConfigurableStorage<Dimensionless> storage = new ConfigurableStorage<>(Unit.ONE);
......
......@@ -35,8 +35,7 @@ public class AmountCloseTo extends TypeSafeMatcher<Amount<?>> {
@Override
protected boolean matchesSafely(Amount<?> item) {
Unit<?> unit = amount.getUnit();
return Matchers.closeTo(amount.getEstimatedValue(), error)
.matches(item.to(unit).getEstimatedValue());
return Matchers.closeTo(amount.getEstimatedValue(), error).matches(item.to(unit).getEstimatedValue());
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment