@@ -0,0 +1,2539 @@
+/*%0A  (c) Copyright 2003, Hewlett-Packard Company, all rights reserved.%0A  %5BSee end of file%5D%0A  $Id: TestGraphPrefixMapping.java,v 1.1 2003-04-28 15:34:11 chris-dollin Exp $%0A*/%0A%0Apackage com.hp.hpl.jena.graph.test;%0A%0Aimport com.hp.hpl.jena.graph.*;%0Aimport com.hp.hpl.jena.shared.*;%0Aimport com.hp.hpl.jena.shared.test.*;%0A%0Aimport junit.framework.*;%0A%0A/**%0A %09@author kers%0A*/%0Apublic class TestGraphPrefixMapping extends GraphTestBase%0A    %7B%0A    public TestGraphPrefixMapping( String name )%0A        %7B super( name ); %7D;%0A        %0A    public static TestSuite suite()%0A        %7B return new TestSuite( TestGraphPrefixMapping.class ); %7D   %0A    %0A    public void testGraphPrefixMapping()%0A        %7B %0A        Graph g = Factory.createDefaultGraph();%0A        TestPrefixMapping.testUseEasyPrefix%0A            ( %22from Graph%22, g.getPrefixMapping() ); %0A        testSameMapping( g );%0A        %7D%0A        %0A    public void testSameMapping( Graph g )%0A        %7B%0A        PrefixMapping pm = g.getPrefixMapping();%0A        assertTrue( pm == g.getPrefixMapping() );%0A        %7D%0A    %7D%0A%0A%0A/*%0A    (c) Copyright Hewlett-Packard Company 2003%0A    All rights reserved.%0A%0A    Redistribution and use in source and binary forms, with or without%0A    modification, are permitted provided that the following conditions%0A    are met:%0A%0A    1. Redistributions of source code must retain the above copyright%0A       notice, this list of conditions and the following disclaimer.%0A%0A    2. Redistributions in binary form must reproduce the above copyright%0A       notice, this list of conditions and the following disclaimer in the%0A       documentation and/or other materials provided with the distribution.%0A%0A    3. The name of the author may not be used to endorse or promote products%0A       derived from this software without specific prior written permission.%0A%0A    THIS SOFTWARE IS PROVIDED BY THE AUTHOR %60%60AS IS'' AND ANY EXPRESS OR%0A    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES%0A    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.%0A    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,%0A    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT%0A    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF%0A    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A*/

Tests a graph's prefix mapping by appealing to the general case.