MCPcopy Create free account
hub / github.com/EsperoTech/yaade / getEventType

Method getEventType

server/src/main/java/com/postman/collection/Event.java:96–104  ·  view source on GitHub ↗

Returns the type of this script, eg., pre-request or test, as an enumerated value. @return enumEventType The event type

()

Source from the content-addressed store, hash-verified

94 * @return enumEventType The event type
95 */
96 public enumEventType getEventType() {
97 if (this.getListen().equals("test")) {
98 return enumEventType.TEST;
99 } else if (this.getListen().equals("prerequest")) {
100 return enumEventType.PRE_REQUEST;
101 } else {
102 return null;
103 }
104 }
105
106
107 /**

Callers 2

getEventMethod · 0.80
addEventMethod · 0.80

Calls 2

getListenMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected