blob: 842cbfd459b31e6f08a01cebab1bd3927e8d181e (
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
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2017 Yahoo Holdings. 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.service.ServerProvider;
import org.junit.Test;
/**
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
public class NonWorkingServerTestCase {
@Test
public void requireThatStartDoesNotThrow() {
ServerProvider server = new NonWorkingServerProvider();
server.start();
}
@Test
public void requireThatCloseDoesNotThrow() {
ServerProvider server = new NonWorkingServerProvider();
server.close();
}
@Test
public void requireThatReferDoesNotThrow() {
ServerProvider server = new NonWorkingServerProvider();
server.refer();
}
@Test
public void requireThatReleaseDoesNotThrow() {
ServerProvider server = new NonWorkingServerProvider();
server.release();
}
}
|