[unitTest] Exception with #3354

Hi,

I get this whenever a new Test is created from juming from the source file.

Assertion failed: Wrong line separators in Document
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:64)
at com.intellij.openapi.editor.impl.DocumentImpl.(DocumentImpl.java:78) at com.intellij.psi.formatter.FormattingDocumentModelImpl.createOn(FormattingDocumentModelImpl.java:3) at com.intellij.psi.formatter.PsiBasedFormattingModel.]]>(PsiBasedFormattingModel.java:71)
at com.intellij.lang.java.JavaLanguage$1.createModel(JavaLanguage.java)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:140)
at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.process(CodeFormatterFacade.java:100)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:59)
at org.intellij.plugins.util.PsiClassManager.createClass(PsiClassManager.java:110)
at org.intellij.plugins.util.PsiClassManager.createClassFromTemplate(PsiClassManager.java:92)
at org.intellij.plugins.junit.ClassLocator.createTestClass(ClassLocator.java:41)
at org.intellij.plugins.junit.actions.GoToUnitTestHandler.createTestClass(GoToUnitTestHandler.java:162)
at org.intellij.plugins.junit.actions.GoToUnitTestHandler$CreateTestClassCommand.run(GoToUnitTestHandler.java:32)
at org.intellij.plugins.util.CommandUtil$4.run(CommandUtil.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:244)
at org.intellij.plugins.util.CommandUtil.runAction(CommandUtil.java:126)
at org.intellij.plugins.util.CommandUtil.access$100(CommandUtil.java:16)
at org.intellij.plugins.util.CommandUtil$3.run(CommandUtil.java:116)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:32)
at org.intellij.plugins.util.CommandUtil.executeCommand(CommandUtil.java:120)
at org.intellij.plugins.util.CommandUtil.executeWriteCommand(CommandUtil.java:33)
at org.intellij.plugins.junit.actions.GoToUnitTestHandler.createTestClassAndGoToTestMethod(GoToUnitTestHandler.java:105)
at org.intellij.plugins.junit.actions.GoToUnitTestHandler$1.itemChosen(GoToUnitTestHandler.java:96)
at org.intellij.plugins.ui.SelectPanel$Choice.chosen(SelectPanel.java:71)
at org.intellij.plugins.ui.SelectPanel.dispose(SelectPanel.java:244)
at org.intellij.plugins.ui.SelectPanel.selected(SelectPanel.java:300)
at org.intellij.plugins.ui.SelectPanelKeyAdapter.keyPressed(SelectPanelKeyAdapter.java:33)
at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:192)
at java.awt.Component.processKeyEvent(Component.java:5446)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2680)
at java.awt.Component.processEvent(Component.java:5265)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:85)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:167)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:93)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:34)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:6)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:739)
at org.intellij.plugins.ui.SelectDialog.finishShow(SelectDialog.java:97)
at org.intellij.plugins.ui.SelectDialog.show(SelectDialog.java:93)
at org.intellij.plugins.junit.actions.MethodTestHandler.selectTemplateAndCreate(MethodTestHandler.java:135)
at org.intellij.plugins.junit.actions.GoToUnitTestHandler.selectClassTemplateAndCreate(GoToUnitTestHandler.java:93)
at org.intellij.plugins.junit.actions.GoToUnitTestHandler.execute(GoToUnitTestHandler.java:77)
at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.actionPerformed(ToggleTestCaseTestedClassAction.java:45)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:16)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:82)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:4)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:87)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:93)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Thanks,
--Venkat.


Please sign in to leave a comment.