author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Thu, 30 Oct 2014 20:46:27 +0100 | |
changeset 408 | 9a439a79c6d0 |
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 }