isEnd() public method

public isEnd ( ) : bool
return bool
 public void test_XMLToken_newSetters_setEOF()
 {
     XMLToken token = new  XMLToken();
       assertTrue( token.isEnd() == false );
       int i = token.setEOF();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( token.isEnd() == false );
       assertTrue( token.isStart() == false );
       assertTrue( token.isText() == false );
       token = null;
 }
Example #2
0
 public void test_XMLToken_fields()
 {
     XMLTriple triple;
       XMLToken token;
       triple = new  XMLTriple("attr", "uri", "prefix");
       token = new  XMLToken(triple);
       assertTrue( token.isElement() == true );
       assertTrue( token.isEnd() == true );
       assertTrue( token.isStart() == false );
       assertTrue( token.isText() == false );
       assertTrue( token.isEOF() == false );
       assertTrue( (  "attr" != token.getName() ) == false );
       assertTrue( (  "uri" != token.getURI() ) == false );
       assertTrue( (  "prefix" != token.getPrefix() ) == false );
       token = null;
       triple = null;
 }
 public void test_Token_copyConstructor()
 {
     XMLTriple t = new XMLTriple("sarah", "http://foo.org/", "bar");
       XMLToken token = new XMLToken(t,3,4);
       assertTrue( token.getName() ==  "sarah" );
       assertTrue( token.getURI() ==  "http://foo.org/" );
       assertTrue( token.getPrefix() ==  "bar" );
       assertTrue( token.isEnd() == true );
       assertTrue( token.isEOF() == false );
       assertTrue( token.getLine() == 3 );
       assertTrue( token.getColumn() == 4 );
       XMLToken token2 = new XMLToken(token);
       assertTrue( token2.getName() ==  "sarah" );
       assertTrue( token2.getURI() ==  "http://foo.org/" );
       assertTrue( token2.getPrefix() ==  "bar" );
       assertTrue( token2.isEnd() == true );
       assertTrue( token2.isEOF() == false );
       assertTrue( token2.getLine() == 3 );
       assertTrue( token2.getColumn() == 4 );
       t = null;
       token = null;
       token2 = null;
 }
Example #4
0
 public void test_XMLToken_chars()
 {
     XMLToken token;
       token = new  XMLToken("This is text");
       assertTrue( token.isElement() == false );
       assertTrue( token.isEnd() == false );
       assertTrue( token.isStart() == false );
       assertTrue( token.isText() == true );
       assertTrue( token.isEOF() == false );
       assertTrue( (  "This is text" != token.getCharacters() ) == false );
       token = null;
 }