1 /***
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 package test.net.sourceforge.pmd.ant;
5
6 import junit.framework.TestCase;
7 import net.sourceforge.pmd.ant.Formatter;
8
9 import java.io.File;
10
11 public class FormatterTest extends TestCase {
12
13 public void testType() {
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 }
33
34 public void testNull() {
35 Formatter f = new Formatter();
36 assertTrue("Formatter toFile should start off null!", f.isNoOutputSupplied());
37 f.setToFile(new File("foo"));
38 assertFalse("Formatter toFile should not be null!", f.isNoOutputSupplied());
39 }
40 }