author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Fri, 03 Apr 2020 16:32:36 +0200 | |
changeset 416 | 9ed8788a1a4e |
permissions | -rw-r--r-- |
1 package org.apidesign.samples;
3 import org.junit.Test;
4 import static org.junit.Assert.*;
6 public class CodeThatCanBeCalledOnlyByTestTest {
8 public CodeThatCanBeCalledOnlyByTestTest() {
9 }
11 @Test
12 public void setNumber() {
13 CodeThatCanBeCalledOnlyByTest.setNumber(111);
14 assertEquals(
15 "Changing number is OK from tests",
16 111,
17 CodeThatCanBeCalledOnlyByTest.getNumber()
18 );
19 }
21 }