001    /*
002     * (c) Copyright 2010 University of Bristol
003     * All rights reserved.
004     * [See end of file]
005     */
006    package net.rootdev.javardfa;
007    
008    import org.junit.Test;
009    import static org.junit.Assert.*;
010    
011    /**
012     *
013     * @author pldms
014     */
015    public class VersionTest {
016    
017        /**
018         * Test of get method, of class Version.
019         */
020        @Test
021        public void testGet() {
022            assertNotNull(Version.get());
023        }
024    
025        /**
026         * Test of getName method, of class Version.
027         */
028        @Test
029        public void testGetName() {
030            assertEquals("java-rdfa", Version.get().getName());
031        }
032    
033        /**
034         * Test of getVersion method, of class Version.
035         */
036        @Test
037        public void testGetVersion() {
038            // Gah, can't usefully test this
039        }
040    
041        /**
042         * Test of toString method, of class Version.
043         */
044        @Test
045        public void testToString() {
046            assertTrue(Version.get().toString().matches("java-rdfa \\S+"));
047        }
048    
049    }
050    
051    /*
052     * (c) Copyright 2010 University of Bristol
053     * All rights reserved.
054     *
055     * Redistribution and use in source and binary forms, with or without
056     * modification, are permitted provided that the following conditions
057     * are met:
058     * 1. Redistributions of source code must retain the above copyright
059     *    notice, this list of conditions and the following disclaimer.
060     * 2. Redistributions in binary form must reproduce the above copyright
061     *    notice, this list of conditions and the following disclaimer in the
062     *    documentation and/or other materials provided with the distribution.
063     * 3. The name of the author may not be used to endorse or promote products
064     *    derived from this software without specific prior written permission.
065     *
066     * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
067     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
068     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
069     * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
070     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
071     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
072     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
073     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
074     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
075     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
076     */