com.atlassian.plugin.web.descriptors
Class TestConditionElementParser

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.plugin.web.descriptors.TestConditionElementParser
All Implemented Interfaces:
junit.framework.Test

public class TestConditionElementParser
extends junit.framework.TestCase


Constructor Summary
TestConditionElementParser()
           
 
Method Summary
 void assertConditions(String conditionElement, boolean expectedResult)
           
 void testAnd()
           
 void testComplex()
           
 void testNestedAnd()
           
 void testNestedMix()
           
 void testNestedOr()
           
 void testOr()
           
 void testSimple()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestConditionElementParser

public TestConditionElementParser()
Method Detail

testSimple

public void testSimple()
                throws org.dom4j.DocumentException,
                       PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

testAnd

public void testAnd()
             throws org.dom4j.DocumentException,
                    PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

testOr

public void testOr()
            throws org.dom4j.DocumentException,
                   PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

testNestedAnd

public void testNestedAnd()
                   throws org.dom4j.DocumentException,
                          PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

testNestedOr

public void testNestedOr()
                  throws org.dom4j.DocumentException,
                         PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

testNestedMix

public void testNestedMix()
                   throws org.dom4j.DocumentException,
                          PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

testComplex

public void testComplex()
                 throws org.dom4j.DocumentException,
                        PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException

assertConditions

public void assertConditions(String conditionElement,
                             boolean expectedResult)
                      throws org.dom4j.DocumentException,
                             PluginParseException
Throws:
org.dom4j.DocumentException
PluginParseException


Copyright © 2010 Atlassian. All Rights Reserved.