Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Executed at: Thu Apr 25 23:40:24 PDT 2019]
- JUnit Tests: 44 / 95
- Coding Style: 5 / 5
- !!!!!!!!!!!!!!!!!!!!
- START OF Robot TESTS
- !!!!!!!!!!!!!!!!!!!!
- TESTS FAILED...
- java.lang.AssertionError: Ensure that your parametrized constructor for SilverRobot properly sets the price expected:<1500.0> but was:<750.0>
- END OF TEST FAILURES
- !!!!!!!!!!!!!!!!!!!!!!!!!
- START OF RobotOwner TESTS
- !!!!!!!!!!!!!!!!!!!!!!!!!
- TESTS FAILED...
- org.junit.ComparisonFailure: Ensure that the `RobotOwner`'s `sellWeapon` returns `ConstantNumber.numberError` on an unsuccessful sell! expected:<[You do not have enough money or] weapons
- > but was:<[Successfully sold] weapons
- >
- org.junit.ComparisonFailure: Ensure that all the returned Strings are there and in the right order! expected:<...fully added weapons
- [Successfully sold weapons
- Successfully upgraded robot]
- > but was:<...fully added weapons
- [
- Successfully sold weapons
- Successfully upgraded robot
- ]
- >
- org.junit.ComparisonFailure: Ensure that if the robot owner has insufficient money, `ConstantNumber.getRobotError` is returned! expected:<[You cannot get that] robot> but was:<[Successfully got the new] robot>
- org.junit.ComparisonFailure: Ensure that the `RobotOwner`'s `addWeapon` returns `ConstantNumber.numberError` on an unsuccessful add! expected:<[You do not have enough money or] weapons
- > but was:<[Successfully added] weapons
- >
- org.junit.ComparisonFailure: Ensure that `RobotOwner`'s `printRobot` method prints the stats of the robot in the correct format and order! expected:<...ons: 1; Price: 200.0[]> but was:<...ons: 1; Price: 200.0[; ]>
- END OF TEST FAILURES
- !!!!!!!!!!!!!!!!!!!!!!!!!
- START OF MainAccess TESTS
- !!!!!!!!!!!!!!!!!!!!!!!!!
- TESTS FAILED...
- Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- Successfully got the new robot
- You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 9.0
- Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
- Your money is: 700.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Iron Robot; Attack: 110; Weapons: 1; Price: 200.0;
- Your money is: 1300.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 580.0
- Your robot's status: Name: Iron Robot; Attack: 310; Weapons: 3; Price: 400.0;
- Your money is: 1600.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully upgraded robot
- You win!!!!!
- You are given 1100.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1870.0
- Your robot's status: Name: Silver Robot; Attack: 700; Weapons: 3; Price: 750.0;
- Your money is: 1600.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- org.junit.ComparisonFailure: Ensure that your output is formatted correctly and runs with no errors, if this is your only error, it is likely due to differences in output expected:<...ons: 0; Price: 100.0[
- Your money is: 700.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Iron Robot; Attack: 110; Weapons: 1; Price: 200.0
- Your money is: 1300.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 580.0
- Your robot's status: Name: Iron Robot; Attack: 310; Weapons: 3; Price: 400.0
- Your money is: 1600.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully upgraded robot
- You win!!!!!
- You are given 1100.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1870.0
- Your robot's status: Name: Silver Robot; Attack: 700; Weapons: 3; Price: 1800.0
- Your money is: 1300.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons]
- You win!!!!!
- > but was:<...ons: 0; Price: 100.0[;
- Your money is: 700.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Iron Robot; Attack: 110; Weapons: 1; Price: 200.0;
- Your money is: 1300.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You win!!!!!
- You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 580.0
- Your robot's status: Name: Iron Robot; Attack: 310; Weapons: 3; Price: 400.0;
- Your money is: 1600.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully upgraded robot
- You win!!!!!
- You are given 1100.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1870.0
- Your robot's status: Name: Silver Robot; Attack: 700; Weapons: 3; Price: 750.0;
- Your money is: 1600.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- ]
- You win!!!!!
- >
- Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- Successfully got the new robot
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
- Your money is: -800.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Please write right command
- You win!!!!!
- You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
- Your money is: 400.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Please write right command
- You lose!
- org.junit.ComparisonFailure: Ensure that all of your errors are correctly formatted and are output when needed expected:<...n
- 2. Silver
- 3. Gold
- [You cannot get that robot
- Please write a correct command
- Welcome to the game, you are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- You cannot get that robot
- Please write a correct command
- Welcome to the game, you are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- You cannot get that robot
- Please write a correct command
- Welcome to the game, you are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- Successfully got the new robot
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0
- Your money is: 500.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Command not supported.
- Please write a correct command
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your money is: 500.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You do not have enough money or weapons
- Please write a correct command
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your money is: 500.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You do not have enough money or weapons
- Please write a correct command
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your money is: 500.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You do not have enough money or weapons
- Please write a correct command
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your money is: 500.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- ]
- You lose!
- > but was:<...n
- 2. Silver
- 3. Gold
- [Successfully got the new robot
- You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
- Your money is: -800.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Please write right command
- You win!!!!!
- You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
- Your money is: 400.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Please write right command]
- You lose!
- >
- Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- Successfully got the new robot
- You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 9.0
- Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
- Your money is: 800.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- You win!!!!!
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You win!!!!!
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 500.0
- Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
- Your money is: 2000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully upgraded robot
- You win!!!!!
- You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
- Your robot's status: Name: Gold Robot; Attack: 2000; Weapons: 4; Price: 1000.0;
- Your money is: 1700.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- Please write right command
- You win!!!!!
- org.junit.ComparisonFailure: Ensure that you are correctly dealing with multiple commands being provided at once expected:<...ons: 0; Price: 100.0[
- Your money is: 800.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- You win!!!!!
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You win!!!!!
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 500.0
- Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0
- Your money is: 2000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully upgraded robot
- You win!!!!!
- You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
- Your robot's status: Name: Gold Robot; Attack: 2000; Weapons: 4; Price: 2400.0
- Your money is: 1300.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- Command not supported.
- Please write a correct command
- You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
- Your money is: 100.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You win!!!!!]> but was:<...ons: 0; Price: 100.0[;
- Your money is: 800.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- You win!!!!!
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
- Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You win!!!!!
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 500.0
- Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
- Your money is: 2000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully upgraded robot
- You win!!!!!
- You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
- Your robot's status: Name: Gold Robot; Attack: 2000; Weapons: 4; Price: 1000.0;
- Your money is: 1700.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- Successfully added weapons
- Please write right command
- You win!!!!!
- ]>
- Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- Successfully got the new robot
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You lose!
- org.junit.ComparisonFailure: Ensure that the user loses ties and that if a user inputs ';' as an entire command you treat it as an empty command expected:<...ons: 0; Price: 100.0[
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You lose!]> but was:<...ons: 0; Price: 100.0[;
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You lose!
- ]>
- java.util.NoSuchElementException: null
- Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
- 1. Iron
- 2. Silver
- 3. Gold
- Successfully got the new robot
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You lose!
- org.junit.ComparisonFailure: Ensure that you return a numberError when the user provides negative input for the BuyWeapon command expected:<...ons: 0; Price: 100.0[
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You do not have enough money or weapons
- Please write a correct command
- You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- You lose!]> but was:<...ons: 0; Price: 100.0[;
- Your money is: 1000.0
- 1. BuyWeapon:[number of weapons]
- 2. SellWeapon:[number of weapons]
- 3. Upgrade:[Silver/Gold]
- Successfully added weapons
- You lose!
- ]>
- END OF TEST FAILURES
- ***************************
- START OF CODING STYLE TESTS
- ***************************
- Starting audit...
- Audit done.
- Robot Tests: 29 / 35
- RobotOwner Tests: 15 / 30
- MainAccess Tests: 0 / 30
- Total Tests: 44 / 95
- Coding Style: 5 / 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement