@@ -0,0 +1,2617 @@
+/* The MIT License (MIT)%0A *%0A * Copyright (c) 2015 Reinventing Geospatial, Inc.%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in all%0A * copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0A * SOFTWARE.%0A */%0A%0Apackage com.rgi.g2t.tests;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0Aimport com.rgi.g2t.TilingException;%0A%0A/**%0A * Unit tests for Tiling Exceptions%0A *%0A * @author Mary Carome%0A */%0A@SuppressWarnings(%22javadoc%22)%0Apublic class TilingExceptionTest%0A%7B%0A    /**%0A     * Test default constructor for TilingException%0A     */%0A    @SuppressWarnings(%22static-method%22)%0A    @Test%0A    public void testDefaultConstructor()%0A    %7B%0A        final Exception e =  new TilingException();%0A%0A        assertTrue(%22TilingException constructor did not make an exception of the correct type.%22,%0A                   e.getClass().equals(TilingException.class));%0A    %7D%0A%0A    /**%0A     * Tests message constructor%0A     */%0A    @SuppressWarnings(%22static-method%22)%0A    @Test%0A    public void testMessageConstructor()%0A    %7B%0A        final Exception e = new TilingException(%22This is a test%22);%0A%0A        assertTrue(%22TilingException constructor did not correctly set the message for the exception.%22,%0A                   e.getMessage().equals(%22This is a test%22));%0A    %7D%0A%0A    /**%0A     * Tests Throwable constructor%0A     */%0A    @SuppressWarnings(%22static-method%22)%0A    @Test%0A    public void testCauseConstructor()%0A    %7B%0A        final Throwable cause = new Throwable(%22Testing!!%22);%0A        final Exception e = new TilingException(cause);%0A%0A        assertTrue(%22TilingException constructor did not correct setly the cause for the exception.%22,%0A                    e.getCause().equals(cause));%0A    %7D%0A%0A%0A%7D%0A

Test tiling exception