Package de.agilecoders.wicket.core.markup.html.bootstrap.block

Source Code of de.agilecoders.wicket.core.markup.html.bootstrap.block.CiteBehaviorTest

package de.agilecoders.wicket.core.markup.html.bootstrap.block;

import de.agilecoders.wicket.core.WicketApplicationTest;
import de.agilecoders.wicket.core.markup.html.bootstrap.block.CiteBehavior;

import org.apache.wicket.markup.Markup;
import org.apache.wicket.markup.MarkupException;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.junit.Test;

/**
* Tests the {@link CiteBehavior} class
*
* @author miha
*/
public class CiteBehaviorTest extends WicketApplicationTest {

    @Test(expected = MarkupException.class)
    public void tagNameIsAsserted() {
        startBehaviorInPage(new CiteBehavior());
    }

    @Test
    public void isRenderedWithoutException() {
        tester().startComponentInPage(new WebMarkupContainer(id()).add(new CiteBehavior()), Markup.of("<cite wicket:id='id'>Cite</cite>"));

        tester().assertNoErrorMessage();
        tester().assertVisible(id());
    }

}
TOP

Related Classes of de.agilecoders.wicket.core.markup.html.bootstrap.block.CiteBehaviorTest

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.