You are viewing an archived page from the original site. Go to the new numericalmethod.com →

Changeset 103 in public


Ignore:
Timestamp:
11/16/2013 5:28:26 PM (7 weeks ago)
Author:
kenyiu
Message:

FIX: AbstractBenchmarkOperationTestCase? accumulated duplicate implementations in a list before each testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/src/test/java/com/numericalmethod/benchmark/operation/AbstractBenchmarkOperationTestCase.java

    r102 r103  
    3131import java.util.Map; 
    3232import static org.junit.Assert.assertNotNull; 
    33 import org.junit.BeforeClass; 
     33import org.junit.Before; 
    3434import org.junit.Ignore; 
    3535import org.junit.Test; 
    … …  
    4242public abstract class AbstractBenchmarkOperationTestCase { 
    4343 
    44     private static final List<Implementation<?>> implementations = 
     44    private final List<Implementation<?>> implementations = 
    4545        new ArrayList<Implementation<?>>(); 
    4646 
    47     @BeforeClass 
    48     public static void addAllImplementations() { 
     47    @Before 
     48    public void addAllImplementations() { 
    4949        for (TestedLibrary library : TestedLibrary.values()) { 
    5050            implementations.add(library.getImplementation()); 
Note: See TracChangeset for help on using the changeset viewer.