Implemented shootONeillsGun
This commit is contained in:
		| @@ -44,6 +44,17 @@ public class Tester { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     void shootONeillsGun(String param) { | ||||||
|  |         switch (param) { | ||||||
|  |             case "B" : | ||||||
|  |                 oneill.shootStargate(Stargate.blueStargate); | ||||||
|  |                 break; | ||||||
|  |             case "Y" : | ||||||
|  |                 oneill.shootStargate(Stargate.yellowStargate); | ||||||
|  |                 break; | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     /* custom Test annotation */ |     /* custom Test annotation */ | ||||||
|     @Target(ElementType.METHOD)     // it's for methods |     @Target(ElementType.METHOD)     // it's for methods | ||||||
|     @Retention(RetentionPolicy.RUNTIME)     // we want to retain annotations in runtime |     @Retention(RetentionPolicy.RUNTIME)     // we want to retain annotations in runtime | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user