Commit 5866c4d6 authored by Marco Descher's avatar Marco Descher 🏔

[15819] Fix IntegrationPostHandlerTest

parent 36d26b63
Pipeline #11306 passed with stages
in 4 minutes and 39 seconds
......@@ -3,7 +3,7 @@ package ch.elexis.core.logback.rocketchat.test;
import java.io.IOException;
import java.net.MalformedURLException;
import ch.elexis.core.logback.rocketchat.IntegrationPostHandler;
import ch.elexis.core.logback.rocketchat.internal.IntegrationPostHandler;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
......@@ -14,10 +14,11 @@ public class IntegrationPostHandlerTest {
private static Logger testLogger = new LoggerContext().getLogger(IntegrationPostHandler.class);
public static final String WEBHOOK_URL = "INSERT_URL_HERE";
public static final String WEBHOOK_URL = "https://rocketchat.medelexis.ch/hooks/4qyKfbsaGP4Ruwqqg/vXmDS5fW6aGkFwrLuAzZ7yPThjHGnhiG6e9y6hyBxaQ6GMt4";
public static void main(String[] args) throws MalformedURLException, IOException{
ILoggingEvent ile = new IntegrationPostHandlerTest().createNestedLoggingEvent(Level.DEBUG);
System.out.println(new IntegrationPostHandler(ile, null, true).post(WEBHOOK_URL));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment