public class TestRationaleZahl extends Object
Modifier and Type | Field and Description |
---|---|
private de.bsvrz.sys.funclib.bitctrl.math.RationaleZahl |
a
Erste rationale Zahl für alle Testfälle.
|
private de.bsvrz.sys.funclib.bitctrl.math.RationaleZahl |
b
Zweite rationale Zahl für alle Testfälle.
|
Constructor and Description |
---|
TestRationaleZahl() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Initialisiert die Testzahlen vor jedem Testfall.
|
void |
testAddiere()
Testet die Methode
RationaleZahl.addiere(RationaleZahl, RationaleZahl) . |
void |
testCompareTo()
Testet die Methode
RationaleZahl.compareTo(RationaleZahl) . |
void |
testDividiereRationaleZahlLong()
Testet die Methode
RationaleZahl.dividiere(RationaleZahl, long) . |
void |
testDividiereRationaleZahlRationaleZahl()
Testet die Methode
RationaleZahl.dividiere(RationaleZahl, RationaleZahl) . |
void |
testDoubleValue()
Testet die Methode
RationaleZahl.doubleValue() . |
void |
testEqualsObject()
Testet die Methode
RationaleZahl.equals(Object) . |
void |
testFloatValue()
Testet die Methode
RationaleZahl.floatValue() . |
void |
testGetNenner()
Testet pro forma den Getter des Nenners.
|
void |
testGetZaehler()
Testet pro forma den Getter des Zählers.
|
void |
testGgT()
Testet die Methode
RationaleZahl.ggT(long, long) . |
void |
testIntValue()
Testet die Methode
RationaleZahl.intValue() . |
void |
testKehrwert()
Testet die Methode
RationaleZahl.kehrwert() . |
void |
testKgV()
Testet die Methode
RationaleZahl.kgV(long, long) . |
void |
testKonstruktor()
Testet das Eintreten der Ausnahme beim Konstruktor.
|
void |
testKuerze()
Testet die Methode
RationaleZahl.kuerze(RationaleZahl) . |
void |
testLongValue()
Testet die Methode
RationaleZahl.longValue() . |
void |
testMultipliziereRationaleZahlLong()
Testet die Methode
RationaleZahl.multipliziere(RationaleZahl, long) . |
void |
testMultipliziereRationaleZahlRationaleZahl()
Testet die Methode
RationaleZahl.multipliziere(RationaleZahl, RationaleZahl) . |
void |
testPotenz()
Testet die Methode
RationaleZahl.potenz(RationaleZahl, int) . |
void |
testSubtrahiere()
Testet die Methode
RationaleZahl.subtrahiere(RationaleZahl, RationaleZahl) . |
void |
testToString()
Testet pro forma die toString()-Methode.
|
private de.bsvrz.sys.funclib.bitctrl.math.RationaleZahl a
private de.bsvrz.sys.funclib.bitctrl.math.RationaleZahl b
public void setUp()
public void testKonstruktor()
public void testGetZaehler()
public void testGetNenner()
public void testIntValue()
RationaleZahl.intValue()
.public void testLongValue()
RationaleZahl.longValue()
.public void testFloatValue()
RationaleZahl.floatValue()
.public void testDoubleValue()
RationaleZahl.doubleValue()
.public void testAddiere()
RationaleZahl.addiere(RationaleZahl, RationaleZahl)
.public void testSubtrahiere()
RationaleZahl.subtrahiere(RationaleZahl, RationaleZahl)
.public void testMultipliziereRationaleZahlLong()
RationaleZahl.multipliziere(RationaleZahl, long)
.public void testMultipliziereRationaleZahlRationaleZahl()
RationaleZahl.multipliziere(RationaleZahl, RationaleZahl)
.public void testDividiereRationaleZahlLong()
RationaleZahl.dividiere(RationaleZahl, long)
.public void testDividiereRationaleZahlRationaleZahl()
RationaleZahl.dividiere(RationaleZahl, RationaleZahl)
.public void testPotenz()
RationaleZahl.potenz(RationaleZahl, int)
.public void testKgV()
RationaleZahl.kgV(long, long)
.public void testGgT()
RationaleZahl.ggT(long, long)
.public void testKehrwert()
RationaleZahl.kehrwert()
.public void testKuerze()
RationaleZahl.kuerze(RationaleZahl)
.public void testCompareTo()
RationaleZahl.compareTo(RationaleZahl)
.public void testEqualsObject()
RationaleZahl.equals(Object)
.public void testToString()
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.