I am running tests on range methods in java and am trying to get the upperbound of a range of inputs. I have this so far: package org.jfree.data.test;
import org.jfree.data.Range;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import junit.framework.TestCase;
public class IntersectsTest extends TestCase {
private Range range;
@Before
public void setUp() throws Exception {
range = new Range (-2.00, 2.00);
}
@After
public void tearDown() throws Exception {
}
@Test
public void testgetupperbound() {
double result = range.getUpperBound();
System.out.println(result);
}}
The resulting output should be 2.00 but the console outputs -2.00
Aucun commentaire:
Enregistrer un commentaire