@@ -0,0 +1,1907 @@
+/**%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.github.commonsrdf.simple;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Tests for the %7B@link Types%7D enumeration.%0A * %0A * @author Peter Ansell p_ansell@yahoo.com%0A */%0Apublic class TypesTest %7B%0A%0A%09/**%0A%09 * Test method for %7B@link com.github.commonsrdf.simple.Types#getIRIString()%7D%0A%09 * .%0A%09 */%0A%09@Test%0A%09public final void testGetIRIString() %7B%0A%09%09assertEquals(%22http://www.w3.org/1999/02/22-rdf-syntax-ns#langString%22,%0A%09%09%09%09Types.RDF_LANGSTRING.getIRIString());%0A%09%7D%0A%0A%09/**%0A%09 * Test method for%0A%09 * %7B@link com.github.commonsrdf.simple.Types#ntriplesString()%7D.%0A%09 */%0A%09@Test%0A%09public final void testNtriplesString() %7B%0A%09%09assertEquals(%22%3Chttp://www.w3.org/1999/02/22-rdf-syntax-ns#langString%3E%22,%0A%09%09%09%09Types.RDF_LANGSTRING.ntriplesString());%0A%09%7D%0A%0A%09/**%0A%09 * Test method for%0A%09 * %7B@link com.github.commonsrdf.simple.Types#get(com.github.commonsrdf.api.IRI)%7D%0A%09 * .%0A%09 */%0A%09@Test%0A%09public final void testGet() %7B%0A%09%09assertTrue(Types.get(%0A%09%09%09%09new IRIImpl(%22http://www.w3.org/2001/XMLSchema#boolean%22))%0A%09%09%09%09.isPresent());%0A%09%09assertEquals(%0A%09%09%09%09%22http://www.w3.org/2001/XMLSchema#boolean%22,%0A%09%09%09%09Types.get(%0A%09%09%09%09%09%09new IRIImpl(%22http://www.w3.org/2001/XMLSchema#boolean%22))%0A%09%09%09%09%09%09.get().getIRIString());%0A%09%09assertFalse(Types.get(%0A%09%09%09%09new IRIImpl(%22http://www.w3.org/2001/XMLSchema#nonExistent%22))%0A%09%09%09%09.isPresent());%0A%09%7D%0A%0A%7D%0A

Add test for Types