本文整理匯總了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());
}