本文整理汇总了Java中org.displaytag.tags.ColumnTag类的典型用法代码示例。如果您正苦于以下问题:Java ColumnTag类的具体用法?Java ColumnTag怎么用?Java ColumnTag使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ColumnTag类属于org.displaytag.tags包,在下文中一共展示了ColumnTag类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doTest
import org.displaytag.tags.ColumnTag; //导入依赖的package包/类
/**
* Should not break on media="foo", since foo could be a valid media not enabled at runtime.
* @param jspName jsp name, with full path
* @throws Exception any axception thrown during test.
*/
@Override
@Test
public void doTest() throws Exception
{
// test keep
WebRequest request = new GetMethodWebRequest(getJspUrl(getJspName()));
// save previous level, since we are expeting an excetion I don't want to fill logs
Level previousLevel = Logger.getLogger(ColumnTag.class).getLevel();
Logger.getLogger(ColumnTag.class).setLevel(Level.OFF);
try
{
runner.getResponse(request);
}
catch (HttpInternalErrorException e)
{
Assert.fail("Should not get any error also if \"foo\" media type is not defined. " + e.getMessage());
}
finally
{
Logger.getLogger(ColumnTag.class).setLevel(previousLevel);
}
// ok
}
示例2: testColumnTag
import org.displaytag.tags.ColumnTag; //导入依赖的package包/类
/**
* ToString() test.
*/
@Test
public void testColumnTag()
{
checkToString(new ColumnTag());
}