Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
eb3bbabe
Commit
eb3bbabe
authored
Nov 06, 2014
by
Romain Bioteau
Browse files
fix test document
parent
10a29361
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/document/TestDocument.java
View file @
eb3bbabe
...
...
@@ -19,6 +19,8 @@ import org.bonitasoft.engine.bpm.document.DocumentValue;
import
org.bonitasoft.studio.common.ExpressionConstants
;
import
org.bonitasoft.studio.common.repository.RepositoryManager
;
import
org.bonitasoft.studio.data.attachment.repository.DocumentRepositoryStore
;
import
org.bonitasoft.studio.diagram.custom.repository.DiagramFileStore
;
import
org.bonitasoft.studio.diagram.custom.repository.DiagramRepositoryStore
;
import
org.bonitasoft.studio.expression.editor.operation.OperatorLabelProvider
;
import
org.bonitasoft.studio.swtbot.framework.application.BotApplicationWorkbenchWindow
;
import
org.bonitasoft.studio.swtbot.framework.composite.BotOperationComposite
;
...
...
@@ -38,6 +40,7 @@ import org.bonitasoft.studio.swtbot.framework.expression.BotExpressionEditorDial
import
org.bonitasoft.studio.test.swtbot.util.SWTBotTestUtil
;
import
org.eclipse.swtbot.eclipse.gef.finder.SWTBotGefTestCase
;
import
org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
...
...
@@ -45,6 +48,15 @@ import org.junit.runner.RunWith;
public
class
TestDocument
extends
SWTBotGefTestCase
{
@Before
public
void
cleanRepo
(){
bot
.
saveAllEditors
();
bot
.
closeAllEditors
();
final
DiagramRepositoryStore
repositoryStore
=
RepositoryManager
.
getInstance
().
getRepositoryStore
(
DiagramRepositoryStore
.
class
);
for
(
final
DiagramFileStore
fStore
:
repositoryStore
.
getChildren
())
{
fStore
.
delete
();
}
}
@Test
public
void
testAddEditDeleteDocument
()
{
...
...
@@ -288,7 +300,6 @@ public class TestDocument extends SWTBotGefTestCase {
@Test
public
void
test_UpdateReturnTypeInLeftOperandOperation_when_refactor_document
()
throws
Exception
{
final
BotApplicationWorkbenchWindow
botApplicationWorkbenchWindow
=
new
BotApplicationWorkbenchWindow
(
bot
);
final
BotProcessDiagramPerspective
botProcessDiagramPerspective
=
botApplicationWorkbenchWindow
.
createNewDiagram
();
final
BotProcessDiagramPropertiesViewFolder
botProcessDiagramPropertiesViewFolder
=
botProcessDiagramPerspective
.
getDiagramPropertiesPart
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment