/*
 * Copyright 2016-2017 Talsma ICT
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.talsmasoftware.reflection;

import nl.talsmasoftware.test.TestUtil;
import org.junit.Test;

/**
 * @author Sjoerd Talsma
 */
public class ClassesTest {

    @Test
    public void testUnsupportedConstructor() {
        TestUtil.assertUnsupportedConstructor(Classes.class);
    }

}

@@ -663,232 +663,2129 @@
 are.
-test.TestUtil;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Sjoerd Talsma%0A */%0Apublic class ClassesTest %7B%0A%0A    @Test%0A    public void testUnsupportedConstructor() %7B%0A        TestUtil.assertUnsupportedConstructor(Classes.class);%0A    %7D%0A
+reflection.errorhandling.MissingClassException;%0Aimport nl.talsmasoftware.test.TestUtil;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.*;%0A%0A/**%0A * @author Sjoerd Talsma%0A */%0Apublic class ClassesTest %7B%0A    private static final String NONEXISTENT_TYPE = %22nl.talsmasoftware.reflection.NonExistentType%22;%0A%0A    @Test%0A    public void testUnsupportedConstructor() %7B%0A        TestUtil.assertUnsupportedConstructor(Classes.class);%0A    %7D%0A%0A    @Test%0A    public void testGetClass() %7B%0A        assertThat(Classes.getClass(String.class.getName()), is(equalTo((Class) String.class)));%0A    %7D%0A%0A    @Test(expected = MissingClassException.class)%0A    public void testGetClass_NotFound() %7B%0A        Classes.getClass(NONEXISTENT_TYPE);%0A    %7D%0A%0A    @Test%0A    public void testGetClasses() %7B%0A        assertThat(Classes.getClasses((String%5B%5D) null), is(equalTo(new Class%5B0%5D)));%0A        assertThat(Classes.getClasses(), is(equalTo(new Class%5B0%5D)));%0A        assertThat(Classes.getClasses(String.class.getName()), is(equalTo(new Class%5B%5D%7BString.class%7D)));%0A        assertThat(Classes.getClasses(Integer.class.getName(), String.class.getName()),%0A                is(equalTo(new Class%5B%5D%7BInteger.class, String.class%7D)));%0A    %7D%0A%0A    @Test(expected = MissingClassException.class)%0A    public void testGetClasses_NotFound() %7B%0A        Classes.getClasses(String.class.getName(), NONEXISTENT_TYPE, Integer.class.getName());%0A    %7D%0A%0A    @Test%0A    public void testFindClass() %7B%0A        assertThat(Classes.findClass(Boolean.class.getName()), is(equalTo((Class) Boolean.class)));%0A    %7D%0A%0A    @Test%0A    public void testFindClass_NotFound() %7B%0A        assertThat(Classes.findClass(NONEXISTENT_TYPE), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testFindClasses() %7B%0A        assertThat(Classes.findClasses((String%5B%5D) null), is(equalTo(new Class%5B0%5D)));%0A        assertThat(Classes.findClasses(), is(equalTo(new Class%5B0%5D)));%0A        assertThat(Classes.findClasses(String.class.getName(), NONEXISTENT_TYPE, Integer.class.getName()),%0A                is(equalTo(new Class%5B%5D%7BString.class, null, Integer.class%7D)));%0A    %7D
 %0A%7D%0A

Add unit test for getClass/getClasses/findClass/findClasses methods.