Package net.sf.tweety.preferences.test
Class ScoringPreferenceAggregatorTest
- java.lang.Object
-
- net.sf.tweety.preferences.test.ScoringPreferenceAggregatorTest
-
public class ScoringPreferenceAggregatorTest extends java.lang.ObjectThe classScoringPreferenceAggregatorTestcontains tests for the class.ScoringPreferenceAggregator- Version:
- $Revision: 1.0 $
- Author:
- Bastian Wolf
-
-
Constructor Summary
Constructors Constructor Description ScoringPreferenceAggregatorTest()
-
Method Summary
Modifier and Type Method Description voidinitializeOrders()static voidmain(java.lang.String[] args)Launch the test.static PreferenceOrder<java.lang.String>parseFile(java.lang.String filename)voidsetUp()Perform pre-test initialization.voidtearDown()Perform post-test clean-up.voidtestBordaScoringPreferenceAggregator_1()voidtestPluralityScoringPreferenceAggregator_1()voidtestVetoScoringPreferenceAggregator_1()
-
-
-
Method Detail
-
parseFile
public static PreferenceOrder<java.lang.String> parseFile(java.lang.String filename)
-
initializeOrders
public void initializeOrders()
-
testPluralityScoringPreferenceAggregator_1
public void testPluralityScoringPreferenceAggregator_1() throws java.lang.Exception- Throws:
java.lang.Exception
-
testVetoScoringPreferenceAggregator_1
public void testVetoScoringPreferenceAggregator_1() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBordaScoringPreferenceAggregator_1
public void testBordaScoringPreferenceAggregator_1() throws java.lang.Exception- Throws:
java.lang.Exception
-
setUp
public void setUp() throws java.lang.ExceptionPerform pre-test initialization.- Throws:
java.lang.Exception- if the initialization fails for some reason
-
tearDown
public void tearDown() throws java.lang.ExceptionPerform post-test clean-up.- Throws:
java.lang.Exception- if the clean-up fails for some reason
-
main
public static void main(java.lang.String[] args)
Launch the test.- Parameters:
args- the command line arguments
-
-