Examples of BasicSection


Examples of org.jostraca.section.BasicSection

    assertEquals( "", ss1.getSection( "s2").getContent() );
  }


  public void testGetSection() {
    Section    s1  = new BasicSection( "s1" );
    SectionSet ss1 = new SectionSet();
    ss1.addSection( s1 );
    assertTrue( ss1.hasSection( "s1" ) );
    assertEquals( s1, ss1.getSection( "s1" ) );
    assertEquals( "", ss1.getSection( "s2" ).getContent() );
View Full Code Here

Examples of org.jostraca.section.BasicSection

    assertEquals( "", ss1.getSection( "s2" ).getContent() );
  }


  public void isEmptySection() {
    Section    s1  = new BasicSection( "s1" );
    SectionSet ss1 = new SectionSet();
    ss1.addSection( s1 );
    assertTrue( ss1.isEmptySection( "s1" ) );
    ss1.appendToSection( "s1", "a" );
    assertTrue( !ss1.isEmptySection( "s1" ) );
View Full Code Here

Examples of org.jostraca.section.BasicSection

    assertTrue( ss1.isEmptySection( "s2" ) );
  }


  public void testEquality() {
    Section s1a = new BasicSection( "s1" ); s1a.setContent( "s1" );
    Section s1b = new BasicSection( "s1" ); s1b.setContent( "s1" );
    assertEquals( s1a, s1b );

    Section s2a = new BasicSection( "s2" ); s2a.setContent( "s2" );
    Section s2b = new BasicSection( "s2" ); s2b.setContent( "s2" );
    assertEquals( s2a, s2b );

    assertTrue( !s1a.equals(s2a) );
    assertTrue( !s1b.equals(s2b) );
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.