package ${package};

import org.flowable.engine.runtime.ProcessInstance;
import org.flowable.task.api.Task;
import org.flowable.engine.test.FlowableRule;
import org.flowable.engine.test.Deployment;
import org.junit.Rule;
import org.junit.Test;

import static org.junit.Assert.*;

public class MyUnitTest {

    @Rule
    public FlowableRule flowableRule = new FlowableRule();

    @Test
    @Deployment(resources = {"${packageInPathFormat}/my-process.bpmn20.xml"})
    public void test() {
        ProcessInstance processInstance = flowableRule.getRuntimeService().startProcessInstanceByKey("my-process");
        assertNotNull(processInstance);

        Task task = flowableRule.getTaskService().createTaskQuery().singleResult();
        assertEquals("Flowable is awesome!", task.getName());
    }

}

@@ -14,16 +14,62 @@
 kage%7D;%0A%0A
+import static org.junit.Assert.assertEquals;%0A%0A
 import o
@@ -116,43 +116,8 @@
 ce;%0A
-import org.flowable.task.api.Task;%0A
 impo
@@ -217,18 +217,30 @@
 org.
-junit.Rule
+flowable.task.api.Task
 ;%0Aim
@@ -258,22 +258,21 @@
 nit.
-Test;%0A
+Rule;
 %0Aimport 
 stat
@@ -259,39 +259,32 @@
 it.Rule;%0Aimport 
-static 
 org.junit.Assert
@@ -281,16 +281,12 @@
 nit.
-Assert.*
+Test
 ;%0A%0Ap

Make import type/order match idea-code-style-configuration.xml config (#1498)