|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MockNameTest | Line # 13 | 4 | 1 | 100% |
1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (1) | |||
| Result | |||
|
1.0
|
org.easymock.tests.MockNameTest.defaultName
org.easymock.tests.MockNameTest.defaultName
|
1 PASS | |
| 1 | /* | |
| 2 | * Copyright (c) 2001-2008 OFFIS, Tammo Freese. | |
| 3 | * This program is made available under the terms of the MIT License. | |
| 4 | */ | |
| 5 | package org.easymock.tests; | |
| 6 | ||
| 7 | import static org.junit.Assert.*; | |
| 8 | ||
| 9 | import org.easymock.MockControl; | |
| 10 | import org.junit.Test; | |
| 11 | ||
| 12 | @SuppressWarnings("deprecation") | |
| 13 | public class MockNameTest { | |
| 14 | ||
| 15 | private MockControl<IMethods> control; | |
| 16 | ||
| 17 | 1 |
@Test |
| 18 | public void defaultName() { | |
| 19 | 1 | control = MockControl.createControl(IMethods.class); |
| 20 | 1 | String expected = "EasyMock for " + IMethods.class.toString(); |
| 21 | 1 | String actual = control.getMock().toString(); |
| 22 | 1 | assertEquals(expected, actual); |
| 23 | } | |
| 24 | } | |
|
||||||||||