|
| 1 | +package em.embedded.textsecuregcm; |
| 2 | + |
| 3 | +import org.evomaster.client.java.controller.EmbeddedSutController; |
| 4 | +import org.evomaster.client.java.controller.InstrumentedSutStarter; |
| 5 | +import org.evomaster.client.java.controller.api.dto.AuthenticationDto; |
| 6 | +import org.evomaster.client.java.controller.api.dto.SutInfoDto; |
| 7 | +import org.evomaster.client.java.controller.problem.ProblemInfo; |
| 8 | +import org.evomaster.client.java.sql.DbSpecification; |
| 9 | + |
| 10 | +import java.util.List; |
| 11 | + |
| 12 | +public class EmbeddedEvoMasterController extends EmbeddedSutController { |
| 13 | + |
| 14 | + public static void main(String[] args) { |
| 15 | + |
| 16 | + int port = 40100; |
| 17 | + if (args.length > 0) { |
| 18 | + port = Integer.parseInt(args[0]); |
| 19 | + } |
| 20 | + |
| 21 | + EmbeddedEvoMasterController controller = new EmbeddedEvoMasterController(port); |
| 22 | + InstrumentedSutStarter starter = new InstrumentedSutStarter(controller); |
| 23 | + |
| 24 | + starter.start(); |
| 25 | + } |
| 26 | + |
| 27 | + public EmbeddedEvoMasterController() { |
| 28 | + this(40100); |
| 29 | + } |
| 30 | + |
| 31 | + public EmbeddedEvoMasterController(int port) { |
| 32 | + setControllerPort(port); |
| 33 | + } |
| 34 | + |
| 35 | + private WhisperServerService application; |
| 36 | + |
| 37 | + @Override |
| 38 | + public boolean isSutRunning() { |
| 39 | + return false; |
| 40 | + } |
| 41 | + |
| 42 | + @Override |
| 43 | + public String getPackagePrefixesToCover() { |
| 44 | + return null; |
| 45 | + } |
| 46 | + |
| 47 | + @Override |
| 48 | + public List<AuthenticationDto> getInfoForAuthentication() { |
| 49 | + return null; |
| 50 | + } |
| 51 | + |
| 52 | + @Override |
| 53 | + public ProblemInfo getProblemInfo() { |
| 54 | + return null; |
| 55 | + } |
| 56 | + |
| 57 | + @Override |
| 58 | + public SutInfoDto.OutputFormat getPreferredOutputFormat() { |
| 59 | + return null; |
| 60 | + } |
| 61 | + |
| 62 | + @Override |
| 63 | + public String startSut() { |
| 64 | + return null; |
| 65 | + } |
| 66 | + |
| 67 | + @Override |
| 68 | + public void stopSut() { |
| 69 | + |
| 70 | + } |
| 71 | + |
| 72 | + @Override |
| 73 | + public void resetStateOfSUT() { |
| 74 | + |
| 75 | + } |
| 76 | + |
| 77 | + @Override |
| 78 | + public List<DbSpecification> getDbSpecifications() { |
| 79 | + return null; |
| 80 | + } |
| 81 | +} |
0 commit comments