testtimecardpageproducer.java
来自「考勤管理系统源码」· Java 代码 · 共 32 行
JAVA
32 行
package com.wiley.compBooks.EJwithUML.TimecardProducers;import java.io.*;import junit.framework.TestCase;import com.wiley.compBooks.EJwithUML.Base.TestUtilities.*;import com.wiley.compBooks.EJwithUML.Base.HtmlPrimitives.ContentElements.*;import com.wiley.compBooks.EJwithUML.Base.HtmlPrimitives.Layout.*;import com.wiley.compBooks.EJwithUML.Base.HtmlPrimitives.Core.*;public class TestTimecardPageProducer extends TestCase{ private TestFileSet testFileSet; public TestTimecardPageProducer(String name) throws IOException { super(name); testFileSet = new TestFileSet("C:/EJwithUML2e/UnitTestResults/TimecardProducers/"); } public void testPage() throws IOException { StringBuffer buffer = new StringBuffer(); TimecardPageProducer page = new TimecardPageProducer("Just a page"); page.addToBody(new SpanPrimitive(TimecardStyle.IMPORTANT_TEXT, "hi there")); page.buildContent(buffer); boolean match = testFileSet.fileMatchesGold("Page.html", buffer.toString()); assertEquals("Page", true, match); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?