1 32 33 package com.jeantessier.classreader; 34 35 import java.io.*; 36 import java.util.*; 37 38 import junit.framework.*; 39 40 public class TestClassfile extends TestCase { 41 private ClassfileLoader loader; 42 43 protected void setUp() throws Exception { 44 loader = new AggregatingClassfileLoader(); 45 loader.load(Collections.singleton("tests" + File.separator + "JarJarDiff" + File.separator + "new")); 46 } 47 48 public void testDeprecated() { 49 assertTrue("ModifiedPackage.DeprecatedClass", loader.getClassfile("ModifiedPackage.DeprecatedClass").isDeprecated()); 50 assertTrue("ModifiedPackage.UndeprecatedClass", !loader.getClassfile("ModifiedPackage.UndeprecatedClass").isDeprecated()); 51 } 52 } 53 | Popular Tags |