Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13797

JobUtils.delay method handles delay trough Display instance even when tests are running in core mode

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.Alpha2
    • 4.1.0.Alpha2
    • arquillian
    • None

      Display.getCurrent() returns not null value even when tests are executed in core mode with configuration below. It means displatInstance.sleep() not always returns control back to test. Solution is additiona check if workbench is actually running and if it is not using alternative option Thread.sleep()

                               <plugin>
                                      <groupId>org.eclipse.tycho</groupId>
                                      <artifactId>tycho-surefire-plugin</artifactId>
                                      <version>${tychoVersion}</version>
                                      <configuration>
                                              <useUIHarness>false</useUIHarness>
                                              <useUIThread>false</useUIThread>
                                              <testSuite>org.jboss.tools.as.test.core</testSuite>
                                              <testClass>${asCoreTestSuite}</testClass>
                                      </configuration>
                              </plugin>
      

            nivologd@gmail.com Denis Golovin (Inactive)
            nivologd@gmail.com Denis Golovin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: