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