Class MCRXEditorValidatorTest

java.lang.Object
org.mycore.common.MCRTestCase
org.mycore.frontend.xeditor.validation.MCRXEditorValidatorTest

public class MCRXEditorValidatorTest extends MCRTestCase
Author:
Frank Lützenkirchen
  • Constructor Details

    • MCRXEditorValidatorTest

      public MCRXEditorValidatorTest()
  • Method Details

    • testNoValidationRules

      public void testNoValidationRules() throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • testRequiredRule

      public void testRequiredRule() throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • testMinIntegerRule

      public void testMinIntegerRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testMaxDecimalRule

      public void testMaxDecimalRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testMaxDateRule

      public void testMaxDateRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testDateFormatRule

      public void testDateFormatRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testLengthRule

      public void testLengthRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testInvalidation

      public void testInvalidation() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testGlobalRules

      public void testGlobalRules() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testMatchesRule

      public void testMatchesRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testXPathTestRule

      public void testXPathTestRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testExternalMethodRule

      public void testExternalMethodRule() throws org.jaxen.JaxenException, JDOMException
      Throws:
      org.jaxen.JaxenException
      JDOMException
    • testRequiredRelevantIfRule

      public void testRequiredRelevantIfRule() throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • testMinIntegerRelevantIfRule

      public void testMinIntegerRelevantIfRule() throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • testXPathTestRelevantIfRule

      public void testXPathTestRelevantIfRule() throws JDOMException, org.jaxen.JaxenException
      Throws:
      JDOMException
      org.jaxen.JaxenException
    • nameStartsWithJ

      public static boolean nameStartsWithJ(String name)
    • authorIsJohnDoe

      public static boolean authorIsJohnDoe(Element author)