main/src/test/java/org/onap/policy/pap/main/rest/e2e/End2EndContext.java
/**
     * Stops the threads and shuts down the PAP Activator, rest services, and topic end
     * points.
     */
Stops the threads and shuts down the PAP Activator, rest services, and topic end
points.
Stops the threads and shuts down the PAP Activator rest services and topic end points .
public void stop() {
        if (!running) {
            throw new IllegalStateException("not running");
        }
        running = false;
        toPdps.clear();
        pdps.forEach(pdp -> toPdps.add(DONE));
        toPap.clear();
        pdps.forEach(pdp -> toPap.add(DONE));
        TopicEndpointManager.getManager().getNoopTopicSink(PapConstants.TOPIC_POLICY_PDP_PAP).unregister(topicListener);
    }
public void stop ( ) { if ( ! running ) { throw new IllegalStateException ( "not running" ) ; } running = false ; toPdps . clear ( ) ; pdps . forEach ( pdp -> toPdps . add ( DONE ) ) ; toPap . clear ( ) ; pdps . forEach ( pdp -> toPap . add ( DONE ) ) ; TopicEndpointManager . getManager ( ) . getNoopTopicSink ( PapConstants . TOPIC_POLICY_PDP_PAP ) . unregister ( topicListener ) ; }
Stops the threads and shuts down the PAP Activator, rest services, and topic end
 points.
Stops the threads and shuts down the PAP Activator rest services and topic end points .
// queue up a "done" message for each PDP // queue up a "done" message for each PDP