net.sf.xisemele.impl
Class WriterEditorImplTest

java.lang.Object
  extended by net.sf.xisemele.impl.WriterEditorImplTest

public class WriterEditorImplTest
extends java.lang.Object

Casos de testes para a classe WriterEditorImpl.

Author:
Carlos Eduardo Coral.

Constructor Summary
WriterEditorImplTest()
           
 
Method Summary
 void testAttribute()
          Testa o método WriterEditorImpl.attribute(String, Object).
 void testAttributeForDate()
          Testa o método WriterEditorImpl.attribute(String, Date, String).
 void testAttributeWithAttributeNotPermittedException()
          Testa se dispara a exceção AttributeNotPermittedException ao chamar o método WriterEditorImpl.attribute(String, Object);
 void testContainsElement()
          Testa o método WriterEditorImpl.containsElement(String).
 void testDefineAsCurrent()
          Testa o método WriterEditorImpl.defineAsCurrent(String).
 void testDocument()
          Testa o método WriterEditorImpl.document().
 void testeAttributeForDateWithAttributeNotPermittedException()
          Testa se dispara a exceção AttributeNotPermittedException ao chamar o método WriterEditorImpl.attribute(String, Date, String).
 void testElement()
          Testa o método WriterEditorImpl.element(String).
 void testElementWithRootDuplicateException()
          Testa se dispara a exceção RootDuplicateException ao chamar o método WriterEditorImpl.element(String).
 void testElementWithWithinContextEnabled()
          Testa o método WriterEditorImpl.element(String) no caso em que o contexto within está habilitado.
 void testEndWithin()
          Testa o método WriterEditorImpl.endWithin().
 void testEndWithinForParent()
          Testa o método WriterEditorImpl.endWithin() para o caso em que o elemento pai do element corrente passa ser o elemento corrente.
 void testEndWithinWithNotWithinContextException()
          Testa se dispara a exceção NotWithinContextException ao chamar o método WriterEditorImpl.endWithin().
 void testGetCurrent()
          Testa o método WriterEditorImpl.getCurrent().
 void testNode()
          Testa o método WriterEditorImpl.node(org.w3c.dom.Node).
 void testNodeWithRootDuplicateException()
          Testa se dispara a exceção RootDuplicateException ao chamar o método WriterEditorImpl.node(org.w3c.dom.Node).
 void testNodeWithWithinContextEnabled()
          Testa o método WriterEditorImpl.node(org.w3c.dom.Node) no caso em que o contexto within está habilitado.
 void testRemove()
          Testa o método WriterEditorImpl.remove().
 void testRemoveAttribute()
          Testa o método WriterEditorImpl.removeAttribute(String).
 void testRemoveAttributes()
          Testa o método WriterEditorImpl.removeAttributes().
 void testRemoveChildForName()
          Testa o método WriterEditorImpl.removeChild(String).
 void testRemoveChildren()
          Testa o método WriterEditorImpl.removeChildren().
 void testRemoveChildrenForName()
          Testa o método WriterEditorImpl.removeChildren(String).
 void testRemoveWithRemoveRootNotPermittedException()
          Testa se dispara a exceção RemoveRootNotPermittedException ao chamar o método WriterEditorImpl.remove().
 void testRename()
          Testa o método WriterEditorImpl.rename(String).
 void testResult()
          Testa o método WriterEditorImpl.result().
 void testValue()
          Testa o método WriterEditorImpl.value(Object).
 void testValueForDate()
          Testa o método WriterEditorImpl.value(Date, String).
 void testValueForDateWithValueNotPermittedException()
          Testa se dispara a exceção ValueNotPermittedException ao chamar o método WriterEditorImpl.value(Date, String).
 void testValueNull()
          Testa o método WriterEditorImpl.value(Object) no caso de especificar o valor null por parâmetro.
 void testValueWithValueNotPermittedExceptionCase1()
          Testa se dispara a exceção ValueNotPermittedException ao chamar o método WriterEditorImpl.value(Object) para um elemento que já contenha elementos filhos.
 void testValueWithValueNotPermittedExceptionCase2()
          Testa se dispara a exceção ValueNotPermittedException ao chamar o método WriterEditorImpl.value(Object) para um contexto within iniciado.
 void testWithin()
          Testa o método WriterEditorImpl.within().
 void testWithinWithWithinContextDuplicateException()
          Testa se dispara a exceção WithinContextDuplicateException ao chamar o método WriterEditorImpl.within().
 void testWithinWithWithinContextNotPermittedException()
          Testa se dispara a exceção WithinContextNotPermittedException ao chamar o método WriterEditorImpl.within().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterEditorImplTest

public WriterEditorImplTest()
Method Detail

testDocument

public void testDocument()
Testa o método WriterEditorImpl.document().


testResult

public void testResult()
Testa o método WriterEditorImpl.result().


testGetCurrent

public void testGetCurrent()
Testa o método WriterEditorImpl.getCurrent().


testContainsElement

public void testContainsElement()
Testa o método WriterEditorImpl.containsElement(String).


testWithin

public void testWithin()
Testa o método WriterEditorImpl.within().


testWithinWithWithinContextDuplicateException

public void testWithinWithWithinContextDuplicateException()
Testa se dispara a exceção WithinContextDuplicateException ao chamar o método WriterEditorImpl.within().


testWithinWithWithinContextNotPermittedException

public void testWithinWithWithinContextNotPermittedException()
Testa se dispara a exceção WithinContextNotPermittedException ao chamar o método WriterEditorImpl.within().


testEndWithin

public void testEndWithin()
Testa o método WriterEditorImpl.endWithin().


testEndWithinWithNotWithinContextException

public void testEndWithinWithNotWithinContextException()
Testa se dispara a exceção NotWithinContextException ao chamar o método WriterEditorImpl.endWithin().


testEndWithinForParent

public void testEndWithinForParent()
Testa o método WriterEditorImpl.endWithin() para o caso em que o elemento pai do element corrente passa ser o elemento corrente.


testElement

public void testElement()
Testa o método WriterEditorImpl.element(String).


testElementWithWithinContextEnabled

public void testElementWithWithinContextEnabled()
Testa o método WriterEditorImpl.element(String) no caso em que o contexto within está habilitado.


testElementWithRootDuplicateException

public void testElementWithRootDuplicateException()
Testa se dispara a exceção RootDuplicateException ao chamar o método WriterEditorImpl.element(String).


testNode

public void testNode()
Testa o método WriterEditorImpl.node(org.w3c.dom.Node).


testNodeWithWithinContextEnabled

public void testNodeWithWithinContextEnabled()
Testa o método WriterEditorImpl.node(org.w3c.dom.Node) no caso em que o contexto within está habilitado.


testNodeWithRootDuplicateException

public void testNodeWithRootDuplicateException()
Testa se dispara a exceção RootDuplicateException ao chamar o método WriterEditorImpl.node(org.w3c.dom.Node).


testValue

public void testValue()
Testa o método WriterEditorImpl.value(Object).


testValueWithValueNotPermittedExceptionCase1

public void testValueWithValueNotPermittedExceptionCase1()
Testa se dispara a exceção ValueNotPermittedException ao chamar o método WriterEditorImpl.value(Object) para um elemento que já contenha elementos filhos.


testValueWithValueNotPermittedExceptionCase2

public void testValueWithValueNotPermittedExceptionCase2()
Testa se dispara a exceção ValueNotPermittedException ao chamar o método WriterEditorImpl.value(Object) para um contexto within iniciado.


testValueNull

public void testValueNull()
Testa o método WriterEditorImpl.value(Object) no caso de especificar o valor null por parâmetro.


testValueForDate

public void testValueForDate()
Testa o método WriterEditorImpl.value(Date, String).


testValueForDateWithValueNotPermittedException

public void testValueForDateWithValueNotPermittedException()
Testa se dispara a exceção ValueNotPermittedException ao chamar o método WriterEditorImpl.value(Date, String).


testAttribute

public void testAttribute()
Testa o método WriterEditorImpl.attribute(String, Object).


testAttributeWithAttributeNotPermittedException

public void testAttributeWithAttributeNotPermittedException()
Testa se dispara a exceção AttributeNotPermittedException ao chamar o método WriterEditorImpl.attribute(String, Object);


testAttributeForDate

public void testAttributeForDate()
Testa o método WriterEditorImpl.attribute(String, Date, String).


testeAttributeForDateWithAttributeNotPermittedException

public void testeAttributeForDateWithAttributeNotPermittedException()
Testa se dispara a exceção AttributeNotPermittedException ao chamar o método WriterEditorImpl.attribute(String, Date, String).


testRemove

public void testRemove()
Testa o método WriterEditorImpl.remove().


testRemoveWithRemoveRootNotPermittedException

public void testRemoveWithRemoveRootNotPermittedException()
Testa se dispara a exceção RemoveRootNotPermittedException ao chamar o método WriterEditorImpl.remove().


testRemoveChildForName

public void testRemoveChildForName()
Testa o método WriterEditorImpl.removeChild(String).


testRemoveChildrenForName

public void testRemoveChildrenForName()
Testa o método WriterEditorImpl.removeChildren(String).


testRemoveChildren

public void testRemoveChildren()
Testa o método WriterEditorImpl.removeChildren().


testRemoveAttribute

public void testRemoveAttribute()
Testa o método WriterEditorImpl.removeAttribute(String).


testRemoveAttributes

public void testRemoveAttributes()
Testa o método WriterEditorImpl.removeAttributes().


testRename

public void testRename()
Testa o método WriterEditorImpl.rename(String).


testDefineAsCurrent

public void testDefineAsCurrent()
Testa o método WriterEditorImpl.defineAsCurrent(String).



Copyright © 2009. All Rights Reserved.