
package uk.ac.ebi.atlas.model.experiment.baseline;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import uk.ac.ebi.atlas.model.experiment.baseline.impl.FactorSet;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

@RunWith(MockitoJUnitRunner.class)
public class ExpressionTest {

    private BaselineExpression subject;

    @Before
    public void initSubject() {

        Factor factor = new Factor("aType", "heart");

        subject = new BaselineExpression(2.3, new FactorSet().add(factor));
    }

    @Test
    public void testIsGreaterThan() throws Exception {

        assertThat(subject.isGreaterThanOrEqual(0.0), is(true));

        assertThat(subject.isGreaterThanOrEqual(3.0), is(false));

        assertThat(subject.isGreaterThanOrEqual(2.3), is(false));

    }
}

@@ -1,9 +1,8 @@
-%0A
 package 
@@ -97,88 +97,8 @@
 st;%0A
-import org.junit.runner.RunWith;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A
 impo
@@ -257,43 +257,8 @@
 s;%0A%0A
-@RunWith(MockitoJUnitRunner.class)%0A
 publ
@@ -357,25 +357,18 @@
 oid 
-initSubject
+setUp
 () %7B%0A
-%0A
     
@@ -417,17 +417,16 @@
 eart%22);%0A
-%0A
         
@@ -547,31 +547,21 @@
 Than
-() throws Exception
+OrEquals()
  %7B%0A
-%0A
     
@@ -617,25 +617,24 @@
  is(true));%0A
-%0A
         asse
@@ -683,25 +683,24 @@
 is(false));%0A
-%0A
         asse
@@ -748,18 +748,16 @@
  is(
-fals
+tru
 e));%0A
-%0A
     

Fix test for build http://bar:8085/browse/ATLAS-ATLASBASE-51/test