Skip to content

Commit bced5dd

Browse files
committed
Add test for default alpha
1 parent 7880d18 commit bced5dd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/test/java/org/gephi/graph/impl/ElementPropertiesTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@
2626
*/
2727
public class ElementPropertiesTest {
2828

29+
@Test
30+
public void testDefaultsAlpha() {
31+
NodeImpl.NodePropertiesImpl p = new NodeImpl.NodePropertiesImpl();
32+
Assert.assertEquals(p.alpha(), 1f);
33+
Assert.assertEquals(p.getTextProperties().getAlpha(), 1f);
34+
35+
EdgeImpl.EdgePropertiesImpl ep = new EdgeImpl.EdgePropertiesImpl();
36+
Assert.assertEquals(ep.alpha(), 1f);
37+
Assert.assertEquals(ep.getTextProperties().getAlpha(), 1f);
38+
}
39+
2940
@Test
3041
public void testNodeProperties() {
3142
NodeImpl.NodePropertiesImpl p = new NodeImpl.NodePropertiesImpl();

0 commit comments

Comments
 (0)