Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.agilecoders.wicket.core.markup.html.bootstrap.table;
 
 import org.junit.Test;

Tests the TableBehavior

Author(s):
miha
public class TableBehaviorTest extends WicketApplicationTest {
    private static final String MARKUP = "<table wicket:id=\"id\"></table>";
    @Test
    public void tableCssIsRendered() {
        assertCssClass(startBehaviorInPage(new TableBehavior(), ), "table");
    }
    @Test
    public void multipleTableStylesAreRendered() {
        assertCssClass(startBehaviorInPage(new TableBehavior().striped().bordered().condensed(), ), "table""table-striped""table-bordered""table-condensed");
    }
    @Test
    public void stripedCssIsRendered() {
        assertCssClass(startBehaviorInPage(new TableBehavior().striped(), ), "table""table-striped");
    }
    @Test
    public void condensedCssIsRendered() {
        assertCssClass(startBehaviorInPage(new TableBehavior().condensed(), ), "table""table-condensed");
    }
    @Test
    public void borderedCssIsRendered() {
        assertCssClass(startBehaviorInPage(new TableBehavior().bordered(), ), "table""table-bordered");
    }
    @Test
    public void hoverCssIsRendered() {
        assertCssClass(startBehaviorInPage(new TableBehavior().hover(), ), "table""table-hover");
    }
New to GrepCode? Check out our FAQ X