Examples of Warn


Examples of net.sf.jabref.bst.Warn

    assertPrefix("{\\'{E}}doua", "{\\'{E}}douard Masterly");
    assertPrefix("Ulric", "Ulrich {\\\"{U}}nderwood and Ned {\\~N}et and Paul {\\={P}}ot");
  }

  private void assertPrefix(final String string, final String string2) {
    assertEquals(string, BibtexTextPrefix.textPrefix(5, string2, new Warn() {
      public void warn(String s) {
        fail("Should not Warn! text.prefix$ should be " + string + " for (5) " + string2);
      }
    }));
  }
View Full Code Here

Examples of net.sf.jabref.bst.Warn

*
*/
public class BibtexWidthTest extends TestCase {

  public void assertBibtexWidth(final int i, final String string) {
    assertEquals(i, BibtexWidth.width(string, new Warn() {
      public void warn(String s) {
        fail("Should not Warn! Width should be " + i + " for " + string);
      }
    }));
  }
View Full Code Here

Examples of net.sf.jabref.bst.Warn

    assertPurify("e", "{\\'e}");
    assertPurify("Edouard Masterly", "{\\'{E}}douard Masterly");
    assertPurify("Ulrich Underwood and Ned Net and Paul Pot", "Ulrich {\\\"{U}}nderwood and Ned {\\~N}et and Paul {\\={P}}ot");}

  private void assertPurify(final String string, final String string2) {
    assertEquals(string, BibtexPurify.purify(string2, new Warn() {
      public void warn(String s) {
        fail("Should not Warn ("+s+")! purify should be " + string + " for " + string2);
      }
    }));
  }
View Full Code Here

Examples of net.sf.jabref.bst.Warn

    {
      AuthorList al = AuthorList
        .getAuthorList("Charles Louis Xavier Joseph de la Vall{\\'e}e Poussin");

      assertEquals("de~laVall{\\'e}e~PoussinCharles Louis Xavier~Joseph", BibtexNameFormatter.formatName(al
        .getAuthor(0), "{vv}{ll}{jj}{ff}", new Warn() {
        public void warn(String s) {
          fail(s);
        }
      }));
    }
   
    {
      AuthorList al = AuthorList
        .getAuthorList("Charles Louis Xavier Joseph de la Vall{\\'e}e Poussin");

      assertEquals("de~la Vall{\\'e}e~Poussin, C.~L. X.~J.", BibtexNameFormatter.formatName(al
        .getAuthor(0), "{vv~}{ll}{, jj}{, f.}", new Warn() {
        public void warn(String s) {
          fail(s);
        }
      }));
    }

    {
      AuthorList al = AuthorList
        .getAuthorList("Charles Louis Xavier Joseph de la Vall{\\'e}e Poussin");

      assertEquals("de~la Vall{\\'e}e~Poussin, C.~L. X.~J?", BibtexNameFormatter.formatName(al
        .getAuthor(0), "{vv~}{ll}{, jj}{, f}?", new Warn() {
        public void warn(String s) {
          fail(s);
        }
      }));
    }

    {
      AuthorList al = AuthorList
        .getAuthorList("Charles Louis Xavier Joseph de la Vall{\\'e}e Poussin");

      assertEquals("dlVP", BibtexNameFormatter.formatName(al.getAuthor(0), "{v{}}{l{}}",
        new Warn() {
          public void warn(String s) {
            fail(s);
          }
        }));
    }
View Full Code Here

Examples of net.sf.jabref.bst.Warn

   
  }

  private void assertNameFormat(String string, String string2, int which, String format){
    assertEquals(string, BibtexNameFormatter.formatName(string2, which, format,
      new Warn() {
        public void warn(String s) {
          fail(s);
        }
      }));
  }
View Full Code Here

Examples of net.sf.jabref.bst.Warn

    assertCaseChangerT("Hallo world; how", "HAllo WORLD; HOW");
    assertCaseChangerT("Hallo world- how", "HAllo WORLD- HOW");
  }

  private void assertCaseChangerT(final String string, final String string2) {
    assertEquals(string, BibtexCaseChanger.changeCase(string2, 't', new Warn() {

      public void warn(String s) {
        fail("Should not Warn (" + s + ")! changeCase('t') should be " + string + " for "
          + string2);
View Full Code Here

Examples of net.sf.jabref.bst.Warn

    }));

  }

  private void assertCaseChangerL(final String string, final String string2) {
    assertEquals(string, BibtexCaseChanger.changeCase(string2, 'l', new Warn() {

      public void warn(String s) {
        fail("Should not Warn (" + s + ")! changeCase('l') should be " + string + " for "
          + string2);
View Full Code Here

Examples of net.sf.jabref.bst.Warn

    }));

  }

  private void assertCaseChangerU(final String string, final String string2) {
    assertEquals(string, BibtexCaseChanger.changeCase(string2, 'u', new Warn() {
      public void warn(String s) {
        fail("Should not Warn (" + s + ")! changeCase('u') should be " + string + " for "
          + string2);

      }
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.