-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added data structure for ExternalServiceMapping
- Loading branch information
Showing
14 changed files
with
183 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...src/main/java/org/evomaster/client/java/controller/api/dto/ExternalServiceMappingDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.evomaster.client.java.controller.api.dto; | ||
|
||
import java.util.Objects; | ||
|
||
public class ExternalServiceMappingDto { | ||
|
||
public String remoteHostname; | ||
|
||
public String localIPAddress; | ||
|
||
public String signature; | ||
|
||
public Boolean isActive; | ||
|
||
public ExternalServiceMappingDto(){}; | ||
|
||
public ExternalServiceMappingDto(String remoteHostname, String localIPAddress, String signature, Boolean isActive) { | ||
this.remoteHostname = remoteHostname; | ||
this.localIPAddress = localIPAddress; | ||
this.signature = signature; | ||
this.isActive = isActive; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
ExternalServiceMappingDto that = (ExternalServiceMappingDto) o; | ||
return Objects.equals(remoteHostname, that.remoteHostname) && Objects.equals(localIPAddress, that.localIPAddress) && Objects.equals(signature, that.signature) && Objects.equals(isActive, that.isActive); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(remoteHostname, localIPAddress, signature, isActive); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ation/src/main/java/org/evomaster/client/java/instrumentation/ExternalServiceMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.evomaster.client.java.instrumentation; | ||
|
||
public class ExternalServiceMapping { | ||
|
||
private String remoteHostName; | ||
|
||
private String localIPAddress; | ||
|
||
private String signature; | ||
|
||
private Boolean isActive; | ||
|
||
|
||
public ExternalServiceMapping(String remoteHostName, String localIPAddress, String signature, Boolean isActive) { | ||
this.remoteHostName = remoteHostName; | ||
this.localIPAddress = localIPAddress; | ||
this.signature = signature; | ||
this.isActive = isActive; | ||
} | ||
|
||
public String getLocalIPAddress() { | ||
return localIPAddress; | ||
} | ||
|
||
public String getRemoteHostname() { | ||
return remoteHostName; | ||
} | ||
|
||
public String getSignature() { | ||
return signature; | ||
} | ||
|
||
public Boolean isActive() { | ||
return isActive; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
core/src/main/kotlin/org/evomaster/core/problem/externalservice/HostnameAction.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.