@@ -0,0 +1,2119 @@
+package me.teaisaweso.client;%0A%0Aimport java.util.Random;%0A%0Aimport junit.framework.Assert;%0Aimport junit.framework.TestCase;%0A%0Apublic class EdgeDrawableTest extends TestCase %7B%0A    static int%5B%5D sTestValues = new int%5B%5D %7B 0, -10, 7, Integer.MAX_VALUE, Integer.MIN_VALUE %7D;%0A    static Random sRand = new Random();%0A%0A    /**%0A     * tests that start x works as expected%0A     */%0A    public void testStartX() %7B%0A        for (int i : sTestValues) %7B%0A            EdgeDrawable ed = new EdgeDrawable(i, sRand.nextInt(), sRand.nextInt(), sRand.nextInt());%0A            Assert.assertEquals(i, ed.getStartX());%0A        %7D%0A    %7D%0A%0A    /**%0A     * tests that start y works as expected%0A     */%0A    public void testStartY() %7B%0A        for (int i : sTestValues) %7B%0A            EdgeDrawable ed = new EdgeDrawable(sRand.nextInt(), i, sRand.nextInt(), sRand.nextInt());%0A            Assert.assertEquals(i, ed.getStartY());%0A        %7D%0A    %7D%0A%0A    /**%0A     * tests that end x works as expected%0A     */%0A    public void testEndX() %7B%0A        for (int i : sTestValues) %7B%0A            EdgeDrawable ed = new EdgeDrawable(sRand.nextInt(), sRand.nextInt(), i, sRand.nextInt());%0A            Assert.assertEquals(i, ed.getEndX());%0A        %7D%0A    %7D%0A%0A    /**%0A     * tests that end y works as expected%0A     */%0A    public void testEndY() %7B%0A        for (int i : sTestValues) %7B%0A            EdgeDrawable ed = new EdgeDrawable(sRand.nextInt(), sRand.nextInt(), sRand.nextInt(), i);%0A            Assert.assertEquals(i, ed.getEndY());%0A        %7D%0A    %7D%0A%0A    /**%0A     * tests the use of needsarrow in an edge drawable%0A     */%0A    public void testArrow() %7B%0A        EdgeDrawable e = new EdgeDrawable(sRand.nextInt(), sRand.nextInt(), sRand.nextInt(), sRand%0A                .nextInt());%0A        Assert.assertEquals(false, e.needsArrow());%0A        e = new EdgeDrawable(sRand.nextInt(), sRand.nextInt(), sRand.nextInt(), sRand.nextInt(),%0A                false);%0A        Assert.assertEquals(false, e.needsArrow());%0A        e = new EdgeDrawable(sRand.nextInt(), sRand.nextInt(), sRand.nextInt(), sRand.nextInt(),%0A                true);%0A        Assert.assertEquals(true, e.needsArrow());%0A    %7D%0A%7D%0A

add a test for edgedrawable