Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.56 KB | None | 0 0
  1. [Executed at: Thu Apr 25 23:40:24 PDT 2019]
  2.  
  3. JUnit Tests: 44 / 95
  4. Coding Style: 5 / 5
  5. !!!!!!!!!!!!!!!!!!!!
  6. START OF Robot TESTS
  7. !!!!!!!!!!!!!!!!!!!!
  8.  
  9. TESTS FAILED...
  10.  
  11. java.lang.AssertionError: Ensure that your parametrized constructor for SilverRobot properly sets the price expected:<1500.0> but was:<750.0>
  12.  
  13. END OF TEST FAILURES
  14.  
  15. !!!!!!!!!!!!!!!!!!!!!!!!!
  16. START OF RobotOwner TESTS
  17. !!!!!!!!!!!!!!!!!!!!!!!!!
  18.  
  19. TESTS FAILED...
  20.  
  21. 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
  22. > but was:<[Successfully sold] weapons
  23. >
  24. org.junit.ComparisonFailure: Ensure that all the returned Strings are there and in the right order! expected:<...fully added weapons
  25. [Successfully sold weapons
  26. Successfully upgraded robot]
  27. > but was:<...fully added weapons
  28. [
  29. Successfully sold weapons
  30.  
  31. Successfully upgraded robot
  32. ]
  33. >
  34. 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>
  35. 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
  36. > but was:<[Successfully added] weapons
  37. >
  38. 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[; ]>
  39.  
  40. END OF TEST FAILURES
  41.  
  42. !!!!!!!!!!!!!!!!!!!!!!!!!
  43. START OF MainAccess TESTS
  44. !!!!!!!!!!!!!!!!!!!!!!!!!
  45.  
  46. TESTS FAILED...
  47.  
  48. Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
  49. 1. Iron
  50. 2. Silver
  51. 3. Gold
  52. Successfully got the new robot
  53. You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 9.0
  54. Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
  55. Your money is: 700.0
  56. 1. BuyWeapon:[number of weapons]
  57. 2. SellWeapon:[number of weapons]
  58. 3. Upgrade:[Silver/Gold]
  59. Successfully added weapons
  60.  
  61.  
  62. You win!!!!!
  63. You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  64. Your robot's status: Name: Iron Robot; Attack: 110; Weapons: 1; Price: 200.0;
  65. Your money is: 1300.0
  66. 1. BuyWeapon:[number of weapons]
  67. 2. SellWeapon:[number of weapons]
  68. 3. Upgrade:[Silver/Gold]
  69. Successfully added weapons
  70.  
  71.  
  72. You win!!!!!
  73. You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 580.0
  74. Your robot's status: Name: Iron Robot; Attack: 310; Weapons: 3; Price: 400.0;
  75. Your money is: 1600.0
  76. 1. BuyWeapon:[number of weapons]
  77. 2. SellWeapon:[number of weapons]
  78. 3. Upgrade:[Silver/Gold]
  79. Successfully upgraded robot
  80.  
  81.  
  82. You win!!!!!
  83. You are given 1100.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1870.0
  84. Your robot's status: Name: Silver Robot; Attack: 700; Weapons: 3; Price: 750.0;
  85. Your money is: 1600.0
  86. 1. BuyWeapon:[number of weapons]
  87. 2. SellWeapon:[number of weapons]
  88. 3. Upgrade:[Silver/Gold]
  89. Successfully added weapons
  90.  
  91.  
  92. You win!!!!!
  93. 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[
  94. Your money is: 700.0
  95. 1. BuyWeapon:[number of weapons]
  96. 2. SellWeapon:[number of weapons]
  97. 3. Upgrade:[Silver/Gold]
  98. Successfully added weapons
  99.  
  100. You win!!!!!
  101. You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  102. Your robot's status: Name: Iron Robot; Attack: 110; Weapons: 1; Price: 200.0
  103. Your money is: 1300.0
  104. 1. BuyWeapon:[number of weapons]
  105. 2. SellWeapon:[number of weapons]
  106. 3. Upgrade:[Silver/Gold]
  107. Successfully added weapons
  108.  
  109. You win!!!!!
  110. You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 580.0
  111. Your robot's status: Name: Iron Robot; Attack: 310; Weapons: 3; Price: 400.0
  112. Your money is: 1600.0
  113. 1. BuyWeapon:[number of weapons]
  114. 2. SellWeapon:[number of weapons]
  115. 3. Upgrade:[Silver/Gold]
  116. Successfully upgraded robot
  117.  
  118. You win!!!!!
  119. You are given 1100.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1870.0
  120. Your robot's status: Name: Silver Robot; Attack: 700; Weapons: 3; Price: 1800.0
  121. Your money is: 1300.0
  122. 1. BuyWeapon:[number of weapons]
  123. 2. SellWeapon:[number of weapons]
  124. 3. Upgrade:[Silver/Gold]
  125. Successfully added weapons]
  126.  
  127. You win!!!!!
  128. > but was:<...ons: 0; Price: 100.0[;
  129. Your money is: 700.0
  130. 1. BuyWeapon:[number of weapons]
  131. 2. SellWeapon:[number of weapons]
  132. 3. Upgrade:[Silver/Gold]
  133. Successfully added weapons
  134.  
  135.  
  136. You win!!!!!
  137. You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  138. Your robot's status: Name: Iron Robot; Attack: 110; Weapons: 1; Price: 200.0;
  139. Your money is: 1300.0
  140. 1. BuyWeapon:[number of weapons]
  141. 2. SellWeapon:[number of weapons]
  142. 3. Upgrade:[Silver/Gold]
  143. Successfully added weapons
  144.  
  145.  
  146. You win!!!!!
  147. You are given 700.0 to buy weapons or upgrade your robot, your next enemy has an attack of 580.0
  148. Your robot's status: Name: Iron Robot; Attack: 310; Weapons: 3; Price: 400.0;
  149. Your money is: 1600.0
  150. 1. BuyWeapon:[number of weapons]
  151. 2. SellWeapon:[number of weapons]
  152. 3. Upgrade:[Silver/Gold]
  153. Successfully upgraded robot
  154.  
  155.  
  156. You win!!!!!
  157. You are given 1100.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1870.0
  158. Your robot's status: Name: Silver Robot; Attack: 700; Weapons: 3; Price: 750.0;
  159. Your money is: 1600.0
  160. 1. BuyWeapon:[number of weapons]
  161. 2. SellWeapon:[number of weapons]
  162. 3. Upgrade:[Silver/Gold]
  163. Successfully added weapons
  164. ]
  165.  
  166. You win!!!!!
  167. >
  168. Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
  169. 1. Iron
  170. 2. Silver
  171. 3. Gold
  172. Successfully got the new robot
  173. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  174. Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
  175. Your money is: -800.0
  176. 1. BuyWeapon:[number of weapons]
  177. 2. SellWeapon:[number of weapons]
  178. 3. Upgrade:[Silver/Gold]
  179. Please write right command
  180. You win!!!!!
  181. You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  182. Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
  183. Your money is: 400.0
  184. 1. BuyWeapon:[number of weapons]
  185. 2. SellWeapon:[number of weapons]
  186. 3. Upgrade:[Silver/Gold]
  187. Please write right command
  188. You lose!
  189. org.junit.ComparisonFailure: Ensure that all of your errors are correctly formatted and are output when needed expected:<...n
  190. 2. Silver
  191. 3. Gold
  192. [You cannot get that robot
  193. Please write a correct command
  194. Welcome to the game, you are given 200.0 to assemble your robot, which one will you choose?
  195. 1. Iron
  196. 2. Silver
  197. 3. Gold
  198. You cannot get that robot
  199. Please write a correct command
  200. Welcome to the game, you are given 200.0 to assemble your robot, which one will you choose?
  201. 1. Iron
  202. 2. Silver
  203. 3. Gold
  204. You cannot get that robot
  205. Please write a correct command
  206. Welcome to the game, you are given 200.0 to assemble your robot, which one will you choose?
  207. 1. Iron
  208. 2. Silver
  209. 3. Gold
  210. Successfully got the new robot
  211. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  212. Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0
  213. Your money is: 500.0
  214. 1. BuyWeapon:[number of weapons]
  215. 2. SellWeapon:[number of weapons]
  216. 3. Upgrade:[Silver/Gold]
  217. Command not supported.
  218.  
  219. Please write a correct command
  220. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  221. Your money is: 500.0
  222. 1. BuyWeapon:[number of weapons]
  223. 2. SellWeapon:[number of weapons]
  224. 3. Upgrade:[Silver/Gold]
  225. You do not have enough money or weapons
  226.  
  227. Please write a correct command
  228. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  229. Your money is: 500.0
  230. 1. BuyWeapon:[number of weapons]
  231. 2. SellWeapon:[number of weapons]
  232. 3. Upgrade:[Silver/Gold]
  233. You do not have enough money or weapons
  234.  
  235. Please write a correct command
  236. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  237. Your money is: 500.0
  238. 1. BuyWeapon:[number of weapons]
  239. 2. SellWeapon:[number of weapons]
  240. 3. Upgrade:[Silver/Gold]
  241. You do not have enough money or weapons
  242.  
  243. Please write a correct command
  244. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  245. Your money is: 500.0
  246. 1. BuyWeapon:[number of weapons]
  247. 2. SellWeapon:[number of weapons]
  248. 3. Upgrade:[Silver/Gold]
  249. ]
  250. You lose!
  251. > but was:<...n
  252. 2. Silver
  253. 3. Gold
  254. [Successfully got the new robot
  255. You are given 500.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  256. Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
  257. Your money is: -800.0
  258. 1. BuyWeapon:[number of weapons]
  259. 2. SellWeapon:[number of weapons]
  260. 3. Upgrade:[Silver/Gold]
  261. Please write right command
  262. You win!!!!!
  263. You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  264. Your robot's status: Name: Silver Robot; Attack: 100; Weapons: 0; Price: 750.0;
  265. Your money is: 400.0
  266. 1. BuyWeapon:[number of weapons]
  267. 2. SellWeapon:[number of weapons]
  268. 3. Upgrade:[Silver/Gold]
  269. Please write right command]
  270. You lose!
  271. >
  272. Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
  273. 1. Iron
  274. 2. Silver
  275. 3. Gold
  276. Successfully got the new robot
  277. You are given 800.0 to buy weapons or upgrade your robot, your next enemy has an attack of 9.0
  278. Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
  279. Your money is: 800.0
  280. 1. BuyWeapon:[number of weapons]
  281. 2. SellWeapon:[number of weapons]
  282. 3. Upgrade:[Silver/Gold]
  283. Successfully added weapons
  284.  
  285. Successfully added weapons
  286.  
  287. Successfully added weapons
  288.  
  289.  
  290. You win!!!!!
  291. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  292. Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
  293. Your money is: 1000.0
  294. 1. BuyWeapon:[number of weapons]
  295. 2. SellWeapon:[number of weapons]
  296. 3. Upgrade:[Silver/Gold]
  297.  
  298. You win!!!!!
  299. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 500.0
  300. Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
  301. Your money is: 2000.0
  302. 1. BuyWeapon:[number of weapons]
  303. 2. SellWeapon:[number of weapons]
  304. 3. Upgrade:[Silver/Gold]
  305. Successfully upgraded robot
  306.  
  307.  
  308. You win!!!!!
  309. You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
  310. Your robot's status: Name: Gold Robot; Attack: 2000; Weapons: 4; Price: 1000.0;
  311. Your money is: 1700.0
  312. 1. BuyWeapon:[number of weapons]
  313. 2. SellWeapon:[number of weapons]
  314. 3. Upgrade:[Silver/Gold]
  315. Successfully added weapons
  316.  
  317. Successfully added weapons
  318.  
  319. Successfully added weapons
  320.  
  321. Successfully added weapons
  322.  
  323. Please write right command
  324. You win!!!!!
  325. org.junit.ComparisonFailure: Ensure that you are correctly dealing with multiple commands being provided at once expected:<...ons: 0; Price: 100.0[
  326. Your money is: 800.0
  327. 1. BuyWeapon:[number of weapons]
  328. 2. SellWeapon:[number of weapons]
  329. 3. Upgrade:[Silver/Gold]
  330. Successfully added weapons
  331. Successfully added weapons
  332. Successfully added weapons
  333.  
  334. You win!!!!!
  335. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  336. Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0
  337. Your money is: 1000.0
  338. 1. BuyWeapon:[number of weapons]
  339. 2. SellWeapon:[number of weapons]
  340. 3. Upgrade:[Silver/Gold]
  341.  
  342. You win!!!!!
  343. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 500.0
  344. Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0
  345. Your money is: 2000.0
  346. 1. BuyWeapon:[number of weapons]
  347. 2. SellWeapon:[number of weapons]
  348. 3. Upgrade:[Silver/Gold]
  349. Successfully upgraded robot
  350.  
  351. You win!!!!!
  352. You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
  353. Your robot's status: Name: Gold Robot; Attack: 2000; Weapons: 4; Price: 2400.0
  354. Your money is: 1300.0
  355. 1. BuyWeapon:[number of weapons]
  356. 2. SellWeapon:[number of weapons]
  357. 3. Upgrade:[Silver/Gold]
  358. Successfully added weapons
  359. Successfully added weapons
  360. Successfully added weapons
  361. Successfully added weapons
  362. Command not supported.
  363.  
  364. Please write a correct command
  365. You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
  366. Your money is: 100.0
  367. 1. BuyWeapon:[number of weapons]
  368. 2. SellWeapon:[number of weapons]
  369. 3. Upgrade:[Silver/Gold]
  370.  
  371. You win!!!!!]> but was:<...ons: 0; Price: 100.0[;
  372. Your money is: 800.0
  373. 1. BuyWeapon:[number of weapons]
  374. 2. SellWeapon:[number of weapons]
  375. 3. Upgrade:[Silver/Gold]
  376. Successfully added weapons
  377.  
  378. Successfully added weapons
  379.  
  380. Successfully added weapons
  381.  
  382.  
  383. You win!!!!!
  384. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 225.0
  385. Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
  386. Your money is: 1000.0
  387. 1. BuyWeapon:[number of weapons]
  388. 2. SellWeapon:[number of weapons]
  389. 3. Upgrade:[Silver/Gold]
  390.  
  391. You win!!!!!
  392. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 500.0
  393. Your robot's status: Name: Iron Robot; Attack: 410; Weapons: 4; Price: 500.0;
  394. Your money is: 2000.0
  395. 1. BuyWeapon:[number of weapons]
  396. 2. SellWeapon:[number of weapons]
  397. 3. Upgrade:[Silver/Gold]
  398. Successfully upgraded robot
  399.  
  400.  
  401. You win!!!!!
  402. You are given 1200.0 to buy weapons or upgrade your robot, your next enemy has an attack of 1000.0
  403. Your robot's status: Name: Gold Robot; Attack: 2000; Weapons: 4; Price: 1000.0;
  404. Your money is: 1700.0
  405. 1. BuyWeapon:[number of weapons]
  406. 2. SellWeapon:[number of weapons]
  407. 3. Upgrade:[Silver/Gold]
  408. Successfully added weapons
  409.  
  410. Successfully added weapons
  411.  
  412. Successfully added weapons
  413.  
  414. Successfully added weapons
  415.  
  416. Please write right command
  417. You win!!!!!
  418. ]>
  419. Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
  420. 1. Iron
  421. 2. Silver
  422. 3. Gold
  423. Successfully got the new robot
  424. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  425. Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
  426. Your money is: 1000.0
  427. 1. BuyWeapon:[number of weapons]
  428. 2. SellWeapon:[number of weapons]
  429. 3. Upgrade:[Silver/Gold]
  430.  
  431. You lose!
  432. 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[
  433. Your money is: 1000.0
  434. 1. BuyWeapon:[number of weapons]
  435. 2. SellWeapon:[number of weapons]
  436. 3. Upgrade:[Silver/Gold]
  437.  
  438. You lose!]> but was:<...ons: 0; Price: 100.0[;
  439. Your money is: 1000.0
  440. 1. BuyWeapon:[number of weapons]
  441. 2. SellWeapon:[number of weapons]
  442. 3. Upgrade:[Silver/Gold]
  443.  
  444. You lose!
  445. ]>
  446. java.util.NoSuchElementException: null
  447. Welcome to the game! You are given 200.0 to assemble your robot, which one will you choose?
  448. 1. Iron
  449. 2. Silver
  450. 3. Gold
  451. Successfully got the new robot
  452. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  453. Your robot's status: Name: Iron Robot; Attack: 10; Weapons: 0; Price: 100.0;
  454. Your money is: 1000.0
  455. 1. BuyWeapon:[number of weapons]
  456. 2. SellWeapon:[number of weapons]
  457. 3. Upgrade:[Silver/Gold]
  458. Successfully added weapons
  459.  
  460.  
  461. You lose!
  462. 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[
  463. Your money is: 1000.0
  464. 1. BuyWeapon:[number of weapons]
  465. 2. SellWeapon:[number of weapons]
  466. 3. Upgrade:[Silver/Gold]
  467. You do not have enough money or weapons
  468.  
  469. Please write a correct command
  470. You are given 1000.0 to buy weapons or upgrade your robot, your next enemy has an attack of 10.0
  471. Your money is: 1000.0
  472. 1. BuyWeapon:[number of weapons]
  473. 2. SellWeapon:[number of weapons]
  474. 3. Upgrade:[Silver/Gold]
  475.  
  476. You lose!]> but was:<...ons: 0; Price: 100.0[;
  477. Your money is: 1000.0
  478. 1. BuyWeapon:[number of weapons]
  479. 2. SellWeapon:[number of weapons]
  480. 3. Upgrade:[Silver/Gold]
  481. Successfully added weapons
  482.  
  483.  
  484. You lose!
  485. ]>
  486.  
  487. END OF TEST FAILURES
  488.  
  489. ***************************
  490. START OF CODING STYLE TESTS
  491. ***************************
  492.  
  493. Starting audit...
  494. Audit done.
  495.  
  496. Robot Tests: 29 / 35
  497. RobotOwner Tests: 15 / 30
  498. MainAccess Tests: 0 / 30
  499. Total Tests: 44 / 95
  500. Coding Style: 5 / 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement