1 package net.jaekl.frank;
3 import java.io.ByteArrayOutputStream;
4 import java.io.IOException;
5 import java.io.PrintWriter;
7 import junit.framework.Assert;
9 import org.junit.After;
10 import org.junit.Before;
11 import org.junit.Test;
13 public class StyleTest {
14 ByteArrayOutputStream m_baos;
19 m_baos = new ByteArrayOutputStream();
20 m_pw = new PrintWriter(m_baos);
24 public void tearDown() throws IOException {
30 // Should develop something here that is a bit smarter about what
31 // it's looking for, and less brittle than a simple compare-against-master...
33 public void test_writeStyle() {
38 Style style = new Style();
39 style.writeStyle(m_pw);
42 actual = m_baos.toString();
43 Assert.assertEquals(Style.CSS + "\n", actual);