@@ -0,0 +1,2178 @@
+/*%0A * JBoss, Home of Professional Open Source.%0A * Copyright 2020 Red Hat, Inc., and individual contributors%0A * as indicated by the @author tags.%0A *%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 */%0A%0Apackage org.jboss.jandex.test;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0Aimport org.jboss.jandex.ClassInfo;%0Aimport org.jboss.jandex.DotName;%0Aimport org.jboss.jandex.Index;%0Aimport org.jboss.jandex.Indexer;%0Aimport org.junit.Test;%0A%0Apublic class IndexerTestCase %7B%0A%0A    @Test%0A    public void testIndexView() throws IOException %7B%0A        DotName org = DotName.createComponentized(null, %22org%22);%0A        DotName jboss = DotName.createComponentized(org, %22jboss%22);%0A        DotName jandex = DotName.createComponentized(jboss, %22jandex%22);%0A        DotName test = DotName.createComponentized(jandex, %22test%22);%0A        DotName indexerTestCase = DotName.createComponentized(test, IndexerTestCase.class.getSimpleName());%0A        DotName testName = DotName.createComponentized(indexerTestCase,%0A                Test$.class.getSimpleName(), true);%0A%0A        Indexer indexer = new Indexer();%0A        InputStream stream = Test$.class.getClassLoader()%0A                .getResourceAsStream(Test$.class.getName().replace('.', '/') + %22.class%22);%0A        ClassInfo indexedClass = indexer.index(stream);%0A        Index index = indexer.complete();%0A%0A        assertEquals(testName, indexedClass.name());%0A        assertNotNull(index.getClassByName(DotName.createSimple(Test$.class.getName())));%0A        assertNotNull(index.getClassByName(testName));%0A    %7D%0A%0A    public static class Test$ %7B%0A%0A    %7D%0A%0A%7D%0A

Test for #97