aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/test/NonWorkingResponseHandlerTestCase.java
blob: b4e82f054b9d3fd02be4536d70b4bd19bda70015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.test;

import com.yahoo.jdisc.Response;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.fail;


/**
 * @author Simon Thoresen Hult
 */
public class NonWorkingResponseHandlerTestCase {

    @Test
    void requireThatHandleResponseThrowsException() {
        NonWorkingResponseHandler handler = new NonWorkingResponseHandler();
        try {
            handler.handleResponse(new Response(Response.Status.OK));
            fail();
        } catch (UnsupportedOperationException e) {

        }
    }
}