Project

General

Profile

Download (1.15 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package unitils;
10

    
11
import org.junit.internal.runners.InitializationError;
12
import org.junit.runner.notification.RunNotifier;
13
import org.unitils.UnitilsJUnit4TestClassRunner;
14

    
15
import eu.etaxonomy.cdm.addon.config.CdmVaadinConfiguration;
16

    
17
/**
18
 * A runner which enables all vaadin UIs for the tests
19
 *
20
 * @author a.kohlbecker
21
 * @since Nov 23, 2017
22
 *
23
 */
24
public class AlternativeUnitilsJUnit4TestClassRunner extends UnitilsJUnit4TestClassRunner {
25

    
26
    /**
27
     * @param testClass
28
     * @throws InitializationError
29
     */
30
    public AlternativeUnitilsJUnit4TestClassRunner(Class<?> testClass) throws InitializationError {
31
        super(testClass);
32
    }
33

    
34
    /**
35
     * {@inheritDoc}
36
     */
37
    @Override
38
    public void run(RunNotifier notifier) {
39
        System.setProperty(CdmVaadinConfiguration.CDM_VAADIN_UI_ACTIVATED, "concept,distribution,editstatus,registration");
40
        super.run(notifier);
41
    }
42

    
43

    
44

    
45
}
    (1-1/1)