-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest_Spells_Main.java
More file actions
42 lines (38 loc) · 1.58 KB
/
Copy pathTest_Spells_Main.java
File metadata and controls
42 lines (38 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package org.example.entities.characters.spells;
public class Test_Spells_Main {
public void testEarth(){
Earth earthSpell = new Earth(100,100);
int correctDamage = 100;
int correctMana = 100;
System.out.println("Correct damage: " + correctDamage + ", Correct Mana : " + correctMana);
System.out.println(earthSpell);
if(earthSpell.abilityDamage == correctDamage && earthSpell.manaCost == correctMana){
System.out.println("Earth Test Passed!");
}
}
public void testFire(){
Fire fireSpell = new Fire(100,100);
int correctDamage = 100;
int correctMana = 100;
System.out.println("Correct damage: " + correctDamage + ", Correct Mana : " + correctMana);
System.out.println(fireSpell);
if(fireSpell.abilityDamage == correctDamage && fireSpell.manaCost == correctMana){
System.out.println("Earth Test Passed!");
}
}
public void testIce(){
Ice iceSpell = new Ice(100,100);
int correctDamage = 100;
int correctMana = 100;
System.out.println("Correct damage: " + correctDamage + ", Correct Mana : " + correctMana);
System.out.println(iceSpell);
if(iceSpell.abilityDamage == correctDamage && iceSpell.manaCost == correctMana){
System.out.println("Ice Test Passed!");
}
}
public static void main(String[] args) {
new Test_Spells_Main().testEarth();
new Test_Spells_Main().testFire();
new Test_Spells_Main().testIce();
}
}