Class EUnitHistory


  • public class EUnitHistory
    extends java.lang.Object
    Class which tracks the results of all the EUnit tests run in this session.
    Version:
    1.0
    Author:
    Antonio García-Domínguez
    • Constructor Detail

      • EUnitHistory

        public EUnitHistory()
    • Method Detail

      • addLaunch

        public void addLaunch​(org.eclipse.debug.core.ILaunch launch,
                              EUnitModule module)
      • getAllLaunches

        public java.util.Map<org.eclipse.debug.core.ILaunch,​java.util.List<EUnitModule>> getAllLaunches()
      • getCurrentLaunch

        public org.eclipse.debug.core.ILaunch getCurrentLaunch()
      • setCurrentLaunch

        public void setCurrentLaunch​(org.eclipse.debug.core.ILaunch launch)
      • getModules

        public java.util.List<EUnitModule> getModules​(org.eclipse.debug.core.ILaunch launch)
      • getResult

        public EUnitTestResultType getResult​(org.eclipse.debug.core.ILaunch launch)
        Returns the aggregated result over all EUnit modules executed in a launch. The basic order is as follows: error if one module had an error, otherwise failure if one module had a failure, otherwise skipped if all modules were skipped, otherwise success. If the launch is not in the history of this instance, it will report that the launch has not been launched yet.