• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 
6 package org.mockitousage.packageprotected;
7 
8 import org.junit.Test;
9 import org.mockitoutil.TestBase;
10 
11 import static org.mockito.Mockito.mock;
12 
13 public class MockingPackageProtectedTest extends TestBase {
14 
15     static class Foo {}
16 
17     class Bar {}
18 
19     @Test
shouldMockPackageProtectedClasses()20     public void shouldMockPackageProtectedClasses() {
21         mock(PackageProtected.class);
22         mock(Foo.class);
23         mock(Bar.class);
24     }
25 }
26