001 /*
002 * Created on 10.01.2006
003 *
004 * $Log:$
005 *
006 */
007 package de.hska.info1.uebung.backtracking;
008
009 import junit.framework.TestCase;
010
011 /**
012 * JUnit-Testklasse für das HausVomNikolaus.
013 *
014 * @author Christian Pape
015 */
016 public class HausVomNikolausTest extends TestCase {
017
018 private HausVomNikolaus hausVomNikolaus = new HausVomNikolaus();
019
020 public void testSucheLoesung0() {
021 assertTrue( hausVomNikolaus.sucheLoesung(0,0) );
022 }
023
024 public void testSucheLoesung1() {
025 assertTrue( hausVomNikolaus.sucheLoesung(1,0) );
026 }
027
028
029 public void testSucheLoesung2() {
030 assertFalse(hausVomNikolaus.sucheLoesung(2,0) );
031 }
032
033 public void testSucheLoesung3() {
034 assertFalse(hausVomNikolaus.sucheLoesung(3,0) );
035 }
036
037 public void testSucheLoesung5() {
038 assertFalse(hausVomNikolaus.sucheLoesung(4,0) );
039 }
040
041 }