@@ -0,0 +1,3025 @@
+/**%0A * Copyright 2016 Palantir Technologies%0A *%0A * Licensed under the BSD-3 License (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://opensource.org/licenses/BSD-3-Clause%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 */%0Apackage com.palantir.atlasdb.table.description;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0A%0Aimport com.palantir.atlasdb.keyvalue.api.Namespace;%0A%0Apublic class SchemaHotspottingTest %7B%0A%0A    Schema hotspottingSchema = getHotspottingSchema();%0A%0A    private static Schema getHotspottingSchema() %7B%0A        Schema suffersFromHotspoting = new Schema(%22SuffersFromHotspoting%22, %22unused%22, Namespace.DEFAULT_NAMESPACE);%0A        suffersFromHotspoting.addTableDefinition(%22HotspottingTable%22, new TableDefinition() %7B%7B%0A            rowName();%0A                rowComponent(%22Hotspotter%22, ValueType.VAR_STRING);%0A            noColumns();%0A        %7D%7D);%0A        return suffersFromHotspoting;%0A    %7D%0A%0A    private static Schema getIgnoredHotspottingSchema() %7B%0A        Schema ignoredHotspotting = new Schema(%22IgnoredHotspotting%22, %22valid.package%22, Namespace.DEFAULT_NAMESPACE);%0A        ignoredHotspotting.addTableDefinition(%22IgnoredHotspottingTable%22, new TableDefinition() %7B%7B%0A            ignoreHotspottingChecks();%0A            rowName();%0A                rowComponent(%22Hotspotter%22, ValueType.VAR_STRING);%0A            noColumns();%0A        %7D%7D);%0A        return ignoredHotspotting;%0A    %7D%0A%0A    @Test (expected = IllegalStateException.class)%0A    public void testHardFailOnValidateOfHotspottingSchema() %7B%0A        hotspottingSchema.validate();%0A    %7D%0A%0A    @Test (expected = IllegalStateException.class)%0A    public void testFailToGenerateHotspottingSchema() throws IOException %7B%0A        hotspottingSchema.renderTables(new TemporaryFolder().getRoot());%0A    %7D%0A%0A    @Test%0A    public void testNoFailureWhenHotspottingIgnored() %7B%0A        getIgnoredHotspottingSchema().validate();%0A    %7D%0A%0A    @Test%0A    public void testSuccessfulGenerationWhenHotspottingIgnored() throws IOException %7B%0A        TemporaryFolder temporaryFolder = new TemporaryFolder();%0A        temporaryFolder.create();%0A%0A        File srcDir = temporaryFolder.getRoot();%0A        getIgnoredHotspottingSchema().renderTables(srcDir);%0A%0A        Assert.assertArrayEquals(srcDir.list(), new String%5B%5D %7B%22valid%22%7D);%0A%0A        File validDirectory = srcDir.listFiles()%5B0%5D;%0A        Assert.assertArrayEquals(validDirectory.list(), new String%5B%5D %7B%22package%22%7D);%0A        Assert.assertArrayEquals(validDirectory.listFiles()%5B0%5D.list(),%0A                new String%5B%5D %7B%22IgnoredHotspottingTableFactory.java%22, %22IgnoredHotspottingTableTable.java%22%7D);%0A    %7D%0A%7D

Add testing for the change