I am trying to come up with an idea on how to create a Cucumber Test on Docker Executable Image?
public class GenerateNumber {
public static void main(String[] args) {
if (args != null && args.length > 0) {
String input = args[0];
if(input.equals("ODD")) {
//GENERATE ODD NUMBERS FROM 0 TO 1000
}else {
//GENERATE EVEN NUMBERS FROM 0 TO 1000
}
}
}
}
Supposed I have this simple class file...I am packaging it into an executable Jar File and use this class as an entry point in my application.
The java file is deployed as a containerized image that will run my class.
Now, from a Cucumber Test perspective, how do I create a step definition file for such case?
This is a docker image right? I am coming up with a strategy on how to do this test.
Any hints from someone who have done similar requirements?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…