Class ScoringPreferenceAggregatorTest
java.lang.Object
org.tweetyproject.preferences.test.ScoringPreferenceAggregatorTest
The class 
ScoringPreferenceAggregatorTest contains tests for the class ScoringPreferenceAggregator- Version:
- $Revision: 1.0 $
- Author:
- Bastian Wolf
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidinitialize ordersstatic voidLaunch the test.static PreferenceOrder<String>parsing the filevoidsetUp()Perform pre-test initialization.voidtearDown()Perform post-test clean-up.voidtesting borda scoring preference aggregatorvoidtesting plurality scoring preference aggreagatorvoidtesting veto scoring preference aggregator
- 
Constructor Details- 
ScoringPreferenceAggregatorTestpublic ScoringPreferenceAggregatorTest()
 
- 
- 
Method Details- 
parseFileparsing the file- Parameters:
- filename- name of the file to parse
- Returns:
- the prefernce order
 
- 
initializeOrderspublic void initializeOrders()initialize orders
- 
testPluralityScoringPreferenceAggregator_1testing plurality scoring preference aggreagator- Throws:
- Exception- any exception
 
- 
testVetoScoringPreferenceAggregator_1testing veto scoring preference aggregator- Throws:
- Exception- any exception
 
- 
testBordaScoringPreferenceAggregator_1testing borda scoring preference aggregator- Throws:
- Exception- any exception
 
- 
setUpPerform pre-test initialization.- Throws:
- Exception- if the initialization fails for some reason generated by CodePro at 20.12.12 11:01
 
- 
tearDownPerform post-test clean-up.- Throws:
- Exception- if the clean-up fails for some reason generated by CodePro at 20.12.12 11:01
 
- 
mainLaunch the test.- Parameters:
- args- the command line arguments generated by CodePro at 20.12.12 11:01
 
 
-