1 19 20 package org.netbeans.modules.editor.errorstripe.spi; 21 22 import junit.framework.TestCase; 23 import org.netbeans.modules.editor.errorstripe.privatespi.Status; 24 25 29 public class StatusTest extends TestCase { 30 31 public StatusTest(String testName) { 32 super(testName); 33 } 34 35 38 public void testGetStatus() { 39 } 40 41 44 public void testCompareTo() { 45 } 46 47 50 public void testEquals() { 51 } 52 53 56 public void testHashCode() { 57 } 58 59 62 public void testGetCompoundStatus() { 63 assertEquals(Status.STATUS_WARNING, Status.getCompoundStatus(Status.STATUS_OK, Status.STATUS_WARNING)); 64 assertEquals(Status.STATUS_ERROR, Status.getCompoundStatus(Status.STATUS_OK, Status.STATUS_ERROR)); 65 assertEquals(Status.STATUS_ERROR, Status.getCompoundStatus(Status.STATUS_WARNING, Status.STATUS_ERROR)); 66 67 assertEquals(Status.STATUS_WARNING, Status.getCompoundStatus(Status.STATUS_WARNING, Status.STATUS_OK)); 68 assertEquals(Status.STATUS_ERROR, Status.getCompoundStatus(Status.STATUS_ERROR, Status.STATUS_OK)); 69 assertEquals(Status.STATUS_ERROR, Status.getCompoundStatus(Status.STATUS_ERROR, Status.STATUS_WARNING)); 70 71 assertEquals(Status.STATUS_OK, Status.getCompoundStatus(Status.STATUS_OK, Status.STATUS_OK)); 72 assertEquals(Status.STATUS_WARNING, Status.getCompoundStatus(Status.STATUS_WARNING, Status.STATUS_WARNING)); 73 assertEquals(Status.STATUS_ERROR, Status.getCompoundStatus(Status.STATUS_ERROR, Status.STATUS_ERROR)); 74 } 75 76 } 77 | Popular Tags |