use of com.health.openscale.core.datatypes.ScaleMeasurement in project openScale by oliexdev.
the class CsvHelperTest method oldVersion16SingleEntry.
@Test
public void oldVersion16SingleEntry() throws Exception {
final String data = "01.03.2018 12:45,8.0,2.0,7.0,5.0,4.0,1.0,6.0,3.0,some text\n";
List<ScaleMeasurement> list = CsvHelper.importFrom(new BufferedReader(new StringReader(data)));
assertEquals(1, list.size());
validateEntry(list.get(0), 4);
}
use of com.health.openscale.core.datatypes.ScaleMeasurement in project openScale by oliexdev.
the class CsvHelperTest method oldVersion13SingleEntry.
@Test
public void oldVersion13SingleEntry() throws Exception {
final String data = "01.03.2018 12:45,8.0,2.0,7.0,5.0,6.0,3.0,some text\n";
List<ScaleMeasurement> list = CsvHelper.importFrom(new BufferedReader(new StringReader(data)));
assertEquals(1, list.size());
validateEntry(list.get(0), 2);
}
use of com.health.openscale.core.datatypes.ScaleMeasurement in project openScale by oliexdev.
the class CsvHelperTest method oldVersion155SingleEntry.
@Test
public void oldVersion155SingleEntry() throws Exception {
final String data = "01.03.2018 12:45,8.0,2.0,7.0,5.0,1.0,6.0,3.0,some text\n";
List<ScaleMeasurement> list = CsvHelper.importFrom(new BufferedReader(new StringReader(data)));
assertEquals(1, list.size());
validateEntry(list.get(0), 3);
}
use of com.health.openscale.core.datatypes.ScaleMeasurement in project openScale by oliexdev.
the class MeasurementTest method initData.
@Before
public void initData() {
measurementA = new ScaleMeasurement();
measurementB = new ScaleMeasurement();
measurementA.setWeight(80.0f);
measurementA.setBone(3.0f);
measurementA.setMuscle(55.0f);
measurementB.setWeight(90.0f);
measurementB.setBone(10.0f);
measurementB.setHip(5.0f);
measurementB.setWater(12.0f);
}
Aggregations