Skip to content

Commit

Permalink
Turn mockito extension tests on for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jlink committed Nov 15, 2015
1 parent 31ec7d0 commit 8ff876c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
Expand Up @@ -27,7 +27,7 @@
*/
@RunWith(JUnit5.class)
@TestDecorators(MockitoDecorator.class)
class SampleMockitoDecoratorTestCase {
class MockitoDecoratorInBaseClassTest {

@Before
void initialize(@InjectMock MyType myType, @TestName String testName) {
Expand All @@ -45,8 +45,3 @@ void secondTestWithInjectedMock(@InjectMock MyType myType) {
}

}

interface MyType {

String getName();
}
16 changes: 16 additions & 0 deletions sample-extension/src/test/java/com/example/mockito/MyType.java
@@ -0,0 +1,16 @@
/*
* Copyright 2015 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*/

package com.example.mockito;

interface MyType {

String getName();
}

0 comments on commit 8ff876c

Please sign in to comment.