-
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.
- Loading branch information
Showing
10 changed files
with
128 additions
and
18 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
30 changes: 30 additions & 0 deletions
30
...oller-api/src/main/java/org/evomaster/client/java/controller/api/dto/HostnameInfoDto.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,30 @@ | ||
package org.evomaster.client.java.controller.api.dto; | ||
|
||
import java.util.Objects; | ||
|
||
public class HostnameInfoDto { | ||
|
||
public String remoteHostname; | ||
|
||
public Boolean resolved; | ||
|
||
public HostnameInfoDto(){}; | ||
|
||
public HostnameInfoDto(String remoteHostname, Boolean resolved) { | ||
this.remoteHostname = remoteHostname; | ||
this.resolved = resolved; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
HostnameInfoDto that = (HostnameInfoDto) o; | ||
return Objects.equals(remoteHostname, that.remoteHostname) && Objects.equals(resolved, that.resolved); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(remoteHostname, resolved); | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
...instrumentation/src/main/java/org/evomaster/client/java/instrumentation/HostnameInfo.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,25 @@ | ||
package org.evomaster.client.java.instrumentation; | ||
|
||
import java.io.Serializable; | ||
|
||
public class HostnameInfo implements Serializable { | ||
private final String remoteHostname; | ||
|
||
/** | ||
* Will be true if the hostname resolved, otherwise false; | ||
*/ | ||
private final Boolean resolved; | ||
|
||
public HostnameInfo(String remoteHostname, Boolean resolved) { | ||
this.remoteHostname = remoteHostname; | ||
this.resolved = resolved; | ||
} | ||
|
||
public String getHostname() { | ||
return remoteHostname; | ||
} | ||
|
||
public Boolean getResolved() { | ||
return resolved; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
core/src/main/kotlin/org/evomaster/core/problem/externalservice/DomainNameAction.kt
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,20 @@ | ||
package org.evomaster.core.problem.externalservice | ||
|
||
import org.evomaster.core.search.EnvironmentAction | ||
import org.evomaster.core.search.StructuralElement | ||
import org.evomaster.core.search.gene.Gene | ||
|
||
class DomainNameAction : EnvironmentAction(listOf()) { | ||
override fun getName(): String { | ||
return "" | ||
} | ||
|
||
override fun seeTopGenes(): List<out Gene> { | ||
return listOf() | ||
} | ||
|
||
override fun copyContent(): StructuralElement { | ||
return DomainNameAction() | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
core/src/main/kotlin/org/evomaster/core/problem/externalservice/HostnameInfo.kt
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,7 @@ | ||
package org.evomaster.core.problem.externalservice | ||
|
||
open class HostnameInfo ( | ||
val remoteHostName: String, | ||
val resolved: Boolean | ||
) { | ||
} |
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