Skip to content
Snippets Groups Projects
Commit 8f1ac415 authored by Long Bui's avatar Long Bui
Browse files

add empty test files

parent c99ab627
No related branches found
No related tags found
1 merge request!1Randomvarhelper
Showing
with 31 additions and 7 deletions
...@@ -88,7 +88,6 @@ public class RandomVariableHelper { ...@@ -88,7 +88,6 @@ public class RandomVariableHelper {
private static Double _getNumericalVariance(BoolSampleList boolSl) { private static Double _getNumericalVariance(BoolSampleList boolSl) {
throw new UnsupportedOperationException("Booleans do not have a numerical variance."); throw new UnsupportedOperationException("Booleans do not have a numerical variance.");
} }
private static Double _getNumericalVariance(IntSampleList intSl) { private static Double _getNumericalVariance(IntSampleList intSl) {
......
...@@ -7,7 +7,7 @@ import org.eclipse.emf.ecore.EObject; ...@@ -7,7 +7,7 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
public abstract class AbstractMeanCalculatorTest { public abstract class AbstractRandomVariableHelperTest {
private ResourceSet resourceSet; private ResourceSet resourceSet;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
......
...@@ -6,7 +6,7 @@ import org.junit.Test; ...@@ -6,7 +6,7 @@ import org.junit.Test;
import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable; import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable;
import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper; import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper;
public class BoxedPDFMeanTest extends AbstractMeanCalculatorTest { public class BoxedPDFMeanTest extends AbstractRandomVariableHelperTest {
@Test @Test
public void boxedPdfUnaryTest() { public void boxedPdfUnaryTest() {
......
package tools.descartes.dml.mm.applicationlevel.functions.util.tests;
public class BoxedPDFVarianceTest extends AbstractRandomVariableHelperTest {
}
...@@ -6,7 +6,7 @@ import org.junit.Test; ...@@ -6,7 +6,7 @@ import org.junit.Test;
import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable; import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable;
import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper; import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper;
public class ExponentialDistributionMeanTest extends AbstractMeanCalculatorTest { public class ExponentialDistributionMeanTest extends AbstractRandomVariableHelperTest {
@Test @Test
public void exponentialDistribTest() { public void exponentialDistribTest() {
RandomVariable randomVariable = loadModel("testfiles/expo-distrib.functions", RandomVariable.class); RandomVariable randomVariable = loadModel("testfiles/expo-distrib.functions", RandomVariable.class);
......
package tools.descartes.dml.mm.applicationlevel.functions.util.tests;
public class ExponentialDistributionVarianceTest extends AbstractRandomVariableHelperTest {
}
...@@ -6,7 +6,7 @@ import org.junit.Test; ...@@ -6,7 +6,7 @@ import org.junit.Test;
import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable; import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable;
import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper; import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper;
public class LiteralMeanTest extends AbstractMeanCalculatorTest { public class LiteralMeanTest extends AbstractRandomVariableHelperTest {
@Test @Test
public void doubleLiteralTest() { public void doubleLiteralTest() {
RandomVariable randomVariable = loadModel("testfiles/double-literal.functions", RandomVariable.class); RandomVariable randomVariable = loadModel("testfiles/double-literal.functions", RandomVariable.class);
......
package tools.descartes.dml.mm.applicationlevel.functions.util.tests;
public class LiteralVarianceTest extends AbstractRandomVariableHelperTest {
}
...@@ -6,7 +6,7 @@ import org.junit.Test; ...@@ -6,7 +6,7 @@ import org.junit.Test;
import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable; import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable;
import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper; import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper;
public class NormalDistributionMeanTest extends AbstractMeanCalculatorTest { public class NormalDistributionMeanTest extends AbstractRandomVariableHelperTest {
@Test @Test
public void normalDistribTest() { public void normalDistribTest() {
......
package tools.descartes.dml.mm.applicationlevel.functions.util.tests;
public class NormalDistributionVarianceTest extends AbstractRandomVariableHelperTest {
}
...@@ -6,7 +6,7 @@ import org.junit.Test; ...@@ -6,7 +6,7 @@ import org.junit.Test;
import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable; import tools.descartes.dml.mm.applicationlevel.functions.RandomVariable;
import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper; import tools.descartes.dml.mm.applicationlevel.functions.util.RandomVariableHelper;
public class PMFMeanTest extends AbstractMeanCalculatorTest { public class PMFMeanTest extends AbstractRandomVariableHelperTest {
@Test @Test
public void intPMFUnaryTest() { public void intPMFUnaryTest() {
......
package tools.descartes.dml.mm.applicationlevel.functions.util.tests;
public class PMFVarianceTest extends AbstractRandomVariableHelperTest {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment