Package edu.zao.fire

Examples of edu.zao.fire.ListRule


    assertTrue(rule.getReplaceString().equals("goodbye"));
  }

  @Test
  public void testSerializeListRule() throws FileNotFoundException, IOException {
    ListRule rule = new ListRule();
    rule.setAddToEnd(true);
    rule.setAscending(false);
    rule.setDigitsDisplayed(3);
    rule.setListStyleState(ListStyle.ROMAN_NUMERALS);
    rule.setSeperatorToken("<(^^<)");
    rule.setStartFrom(1);

    try {
      File saveFile = makeTempFile("listRule.frr");
      ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(saveFile));
      oos.writeObject(rule);
View Full Code Here


  @Test
  public void testDeserializeListRule() throws IOException, ClassNotFoundException {
    File savedRule = makeTempFile("listRule.frr");
    ObjectInputStream ois = new ObjectInputStream(new FileInputStream(savedRule));
    ListRule rule = (ListRule) ois.readObject();

    assertTrue(rule.isAddToEnd());
    assertFalse(rule.isAscending());
    assertTrue(rule.getDigitsDisplayed() == 3);
    assertTrue(rule.getListStyleState() == ListStyle.ROMAN_NUMERALS);
    assertTrue(rule.getSeperatorToken().equals("<(^^<)"));
    assertTrue(rule.getStartFrom() == 1);
  }
View Full Code Here

public class ListRuleEditorInput extends RenamerRuleEditorInput {

  private final ListRule rule;

  public ListRuleEditorInput() {
    rule = new ListRule();
  }
View Full Code Here

TOP

Related Classes of edu.zao.fire.ListRule

Copyright © 2018 www.massapicom. 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.