don't put classes on the top level without a package, it's nonsense

This commit is contained in:
Sergey Ignatov
2017-07-03 12:44:17 +03:00
parent a94f27a2d3
commit b019833645
4 changed files with 13 additions and 4 deletions
@@ -1,4 +1,7 @@
package org.jetbrains.plugins.ipnb;
import com.intellij.testFramework.LightVirtualFile;
import junit.framework.TestCase;
import org.jetbrains.plugins.ipnb.format.IpnbFile;
import org.jetbrains.plugins.ipnb.format.IpnbParser;
import org.jetbrains.plugins.ipnb.format.cells.IpnbCodeCell;
@@ -15,9 +18,9 @@ public class CellOperationTest extends IpnbTestCase {
final IpnbFile ipnbFile = IpnbParser.parseIpnbFile(fileText, new LightVirtualFile());
ipnbFile.addCell(IpnbCodeCell.createEmptyCodeCell(), ipnbFile.getCells().size());
final IpnbCodeCell cell = (IpnbCodeCell)ipnbFile.getCells().get(ipnbFile.getCells().size() - 1);
assertTrue(cell.getCellOutputs().isEmpty());
assertNull(cell.getPromptNumber());
assertTrue(cell.getMetadata().isEmpty());
TestCase.assertTrue(cell.getCellOutputs().isEmpty());
TestCase.assertNull(cell.getPromptNumber());
TestCase.assertTrue(cell.getMetadata().isEmpty());
}
public void testRemoveCell() throws IOException {
@@ -28,6 +31,6 @@ public class CellOperationTest extends IpnbTestCase {
ipnbFile.addCell(IpnbCodeCell.createEmptyCodeCell(), ipnbFile.getCells().size());
ipnbFile.removeCell(ipnbFile.getCells().size() - 1);
assertEquals(fileText, IpnbTestCase.getFileText(fileName));
TestCase.assertEquals(fileText, IpnbTestCase.getFileText(fileName));
}
}
@@ -1,3 +1,5 @@
package org.jetbrains.plugins.ipnb;
import com.intellij.openapi.application.PathManager;
import junit.framework.TestCase;
import org.jetbrains.annotations.NotNull;
@@ -1,3 +1,5 @@
package org.jetbrains.plugins.ipnb;
import com.google.common.collect.Iterables;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.testFramework.LightVirtualFile;
@@ -1,3 +1,5 @@
package org.jetbrains.plugins.ipnb;
import com.intellij.openapi.project.DefaultProjectFactory;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.Ref;