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

Method Event

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

Create a new Event object with the specified EventType (eg., pre-request or test) and source code. The type property is excluded because it is always 'text/javascript', although the schema does theoretically allow for different values @param evtType Enumerated value of the event typ

(enumEventType evtType, String sourceCode)

Source from the content-addressed store, hash-verified

63 *
64 */
65 public Event(enumEventType evtType, String sourceCode) {
66 this.setEventType(evtType);
67 this.setScript(new PostmanScript(this.getScriptType(), sourceCode));
68 }
69
70
71 /**

Callers

nothing calls this directly

Calls 3

setEventTypeMethod · 0.95
setScriptMethod · 0.95
getScriptTypeMethod · 0.95

Tested by

no test coverage detected