@@ -0,0 +1,876 @@
+/*%0A */%0Apackage org.datadryad.api;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author Dan Leehr %3Cdan.leehr@nescent.org%3E%0A */%0Apublic class DryadEmbargoTypesTest %7B%0A%0A    /**%0A     * Test of validate method, of class DryadEmbargoTypes.%0A     */%0A    @Test%0A    public void testValidate() %7B%0A        String type = %22oneyear%22;%0A        Boolean result = DryadEmbargoTypes.validate(type);%0A        assertTrue(result);%0A%0A        type = %22custom%22;%0A        result = DryadEmbargoTypes.validate(type);%0A        assertTrue(result);%0A%0A        type = %22untilArticleAppears%22;%0A        result = DryadEmbargoTypes.validate(type);%0A        assertTrue(result);%0A%0A        type = %22some other string%22;%0A        result = DryadEmbargoTypes.validate(type);%0A        assertFalse(result);%0A%0A        type = null;%0A        result = DryadEmbargoTypes.validate(type);%0A        assertFalse(result);%0A    %7D%0A%7D%0A

Test case for EmbargoTypes