/** Test the targets for a report. */ @Test public void testReport1Target3() { System.out.println( "Running test " + this.getClass().getSimpleName() + "." + new Object() {}.getClass().getEnclosingMethod().getName()); String[] targetEntry = reports.get(1).getData(2); assertEquals("Sigma", targetEntry[ExtDataCols.TARGET_NAME.ordinal()]); assertEquals("Ori", targetEntry[ExtDataCols.CONSTELLATION_NAME.ordinal()]); assertEquals("Mlt star", targetEntry[ExtDataCols.TYPE_NAME.ordinal()]); assertEquals("51x", targetEntry[ExtDataCols.POWER_NAME.ordinal()]); assertEquals("Sufficient for seeing 5 stars", targetEntry[ExtDataCols.NOTES_NAME.ordinal()]); }
/** Test the last target of a report. */ @Test public void testReport0LastTarget() { System.out.println( "Running test " + this.getClass().getSimpleName() + "." + new Object() {}.getClass().getEnclosingMethod().getName()); String[] targetEntry = reports.get(0).getData(3); assertEquals("Jupiter", targetEntry[ExtDataCols.TARGET_NAME.ordinal()]); assertEquals("Cnc", targetEntry[ExtDataCols.CONSTELLATION_NAME.ordinal()]); assertEquals("Planet", targetEntry[ExtDataCols.TYPE_NAME.ordinal()]); assertEquals("129x", targetEntry[ExtDataCols.POWER_NAME.ordinal()]); assertEquals( "A bit of wind, but the image stays crisp at high magnifications. No aberration.", targetEntry[ExtDataCols.NOTES_NAME.ordinal()]); }