Examples of ObsCodeFieldMatcher


Examples of org.aavso.tools.vstar.data.filter.ObsCodeFieldMatcher

  }

  // Valid observation matcher tests.

  public void testObsCodeFieldMatcherTest() {
    ObsCodeFieldMatcher matcher = new ObsCodeFieldMatcher("ABC",
        ObservationMatcherOp.EQUALS);

    ValidObservation ob = new ValidObservation();
    ob.setObsCode("ABC");

    assertTrue(matcher.matches(ob));
  }
View Full Code Here

Examples of org.aavso.tools.vstar.data.filter.ObsCodeFieldMatcher

  }

  // Valid observation filter tests.

  public void testObservationFilterTest1() {
    ObsCodeFieldMatcher matcher1 = new ObsCodeFieldMatcher("ABC",
        ObservationMatcherOp.EQUALS);

    ObservationFilter filter = new ObservationFilter();
    filter.addMatcher(matcher1);
View Full Code Here

Examples of org.aavso.tools.vstar.data.filter.ObsCodeFieldMatcher

    assertTrue(filter.matches(ob));
  }

  public void testObservationFilterTest2() {
    ObsCodeFieldMatcher matcher1 = new ObsCodeFieldMatcher("ABC",
        ObservationMatcherOp.EQUALS);

    MagnitudeFieldMatcher matcher2 = new MagnitudeFieldMatcher(4.0,
        ObservationMatcherOp.LESS_THAN);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.