Project

General

Profile

« Previous | Next » 

Revision a735bbbf

Added by Andreas Kohlbecker about 7 years ago

  • ID a735bbbfccc284e24f355551d2496cd15e790243
  • Parent a1dac6b2

ref #5285 attempt to avoid using the CdmSpringContextHelper
using DI to get rid of CdmSpringContextHelper, but got stuck due to the complexity and variety of the 'design patterns' that have been used.

View differences:

src/test/java/eu/etaxonomy/cdm/vaadin/presenter/StatusPresenterTest.java
13 13

  
14 14
import org.apache.log4j.Logger;
15 15
import org.junit.Assert;
16
import org.junit.BeforeClass;
17 16
import org.junit.Ignore;
18 17
import org.junit.Test;
19 18
import org.unitils.dbunit.annotation.DataSet;
19
import org.unitils.spring.annotation.SpringBeanByType;
20 20

  
21 21
import com.vaadin.data.Item;
22 22
import com.vaadin.data.util.sqlcontainer.RowId;
......
36 36

  
37 37
    private static final Logger logger = Logger.getLogger(StatusPresenterTest.class);
38 38

  
39
    private static StatusPresenter sp;
40

  
41
    @BeforeClass
42
    public static void init() {
43
        sp = new StatusPresenter();
44
    }
45

  
46

  
39
    @SpringBeanByType
40
    private StatusPresenter sp = null;
47 41

  
48 42
    @Test
49 43
    public void testLoadTaxa() throws SQLException {

Also available in: Unified diff