import java.awt.Color;
-import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
/**
private FeatureRenderer fr;
- @BeforeClass(alwaysRun = true)
+ @BeforeTest(alwaysRun = true)
public void setUp()
{
// aligned column 8 is sequence position 6
}
/**
- * Clear down any sequence features before each test
+ * Clear down any sequence features before each test (not as easy as it
+ * sounds...)
*/
@BeforeMethod(alwaysRun = true)
public void setUpBeforeTest()
{
fr.setGroupVisibility(group, true);
}
+
+ fr.clearRenderOrder();
+ av.setShowSequenceFeatures(true);
}
@Test(groups = "Functional")
/*
* add a feature
- * it will be automatically set visible but the viewport
- * is still configured not to show features
+ * it will be automatically set visible but we leave
+ * the viewport configured not to show features
*/
+ av.setShowSequenceFeatures(false);
seq.addSequenceFeature(new SequenceFeature("Metal", "Metal", 2, 12,
Float.NaN, "MetalGroup"));
FeatureColour red = new FeatureColour(Color.red);
*/
fr.setGroupVisibility("MetalGroup", false);
assertFalse(finder.noFeaturesDisplayed());
+
+ /*
+ * a finder with no feature renderer
+ */
+ FeatureColourFinder finder2 = new FeatureColourFinder(null);
+ assertTrue(finder2.noFeaturesDisplayed());
}
}