Class ScoringPreferenceAggregatorTest


  • public class ScoringPreferenceAggregatorTest
    extends java.lang.Object
    The class ScoringPreferenceAggregatorTest contains tests for the class ScoringPreferenceAggregator.
    Version:
    $Revision: 1.0 $
    Author:
    Bastian Wolf
    • Constructor Detail

      • ScoringPreferenceAggregatorTest

        public ScoringPreferenceAggregatorTest()
    • 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.Exception
        Perform pre-test initialization.
        Throws:
        java.lang.Exception - if the initialization fails for some reason
      • tearDown

        public void tearDown()
                      throws java.lang.Exception
        Perform 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