mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't put classes on the top level without a package, it's nonsense
This commit is contained in:
+7
-4
@@ -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));
|
||||
}
|
||||
}
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
package org.jetbrains.plugins.ipnb;
|
||||
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import junit.framework.TestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
+2
@@ -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;
|
||||
+2
@@ -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;
|
||||
Reference in New Issue
Block a user