org.hd.d.pg2k.test.dev
Class ScorerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hd.d.pg2k.test.dev.ScorerTest
All Implemented Interfaces:
junit.framework.Test

public final class ScorerTest
extends junit.framework.TestCase

Tests of AI-based image scoring.


Field Summary
private static java.util.Random rnd
          Private source of OK pseudo-random numbers.
 
Constructor Summary
ScorerTest(java.lang.String name)
           
 
Method Summary
private static java.util.concurrent.Callable<java.awt.image.RenderedImage> makeRIFactory(java.awt.image.RenderedImage ri)
          Trivial RenderedImage factory.
 void testCalibration()
          Test the Scorer marking algorithm against calibration data.
static void testCanonicalisation()
          Test that we can safely canonicalise various Scorers values.
static void testFixedImgScorers()
          Test that simplest "fixed" image scorers return sensible/expected (fixed) values.
 void testScoreAndConf()
          Test some features of ScoreAndConf.
static void testSimilarity()
          Test that our similarity measures for parameters and Scorers are working.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rnd

private static final java.util.Random rnd
Private source of OK pseudo-random numbers.

Constructor Detail

ScorerTest

public ScorerTest(java.lang.String name)
Method Detail

makeRIFactory

private static java.util.concurrent.Callable<java.awt.image.RenderedImage> makeRIFactory(java.awt.image.RenderedImage ri)
Trivial RenderedImage factory.


testFixedImgScorers

public static final void testFixedImgScorers()
                                      throws java.lang.Exception
Test that simplest "fixed" image scorers return sensible/expected (fixed) values.

Throws:
java.lang.Exception

testCalibration

public void testCalibration()
                     throws java.lang.Exception
Test the Scorer marking algorithm against calibration data.

Throws:
java.lang.Exception

testScoreAndConf

public void testScoreAndConf()
Test some features of ScoreAndConf. In particular test conversion to and from the String representation.


testCanonicalisation

public static void testCanonicalisation()
Test that we can safely canonicalise various Scorers values.


testSimilarity

public static void testSimilarity()
Test that our similarity measures for parameters and Scorers are working.


DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.