Skip to content

Commit b6fd772

Browse files
author
Carlos Sobrinho
authored
Change some of the language to be more inclusive. (#92)
* Update GwtMockito Adhere to the inclusive language requirements. * Update README.md * Update GwtMockitoMemoryLeakTest.java * Update GwtMockitoTestRunnerTest.java
1 parent 06b21bb commit b6fd772

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ to manually install the jars for [Mockito][6] and [Javassist][7].
282282
* Support for Cobertura coverage tools. (Thanks to mvmn)
283283
* Try to intelligently return the right value for getTagName when possible.
284284
* Fixed a classloader delegation issue. (Thanks to paulduffin)
285-
* Add an annotation allowing the blacklist of classes that are always
285+
* Add an annotation allowing the excludelist of classes that are always
286286
loaded via the standard classloader to be specified on a per-test bases.
287287

288288
### 1.1.3

gwtmockito/src/test/java/com/google/gwtmockito/GwtMockitoMemoryLeakTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ public void shouldGarbageCollectGwtClassLoaderWhenThreadLocalIsUsed() throws Ini
3030
}
3131

3232
@RunWith(JUnit4.class)
33-
public static class DummyTestClass {
33+
public static class FakeTestClass {
3434

3535
@Test
36-
public void dummy() {
36+
public void fake() {
3737
}
3838
}
3939

4040
@RunWith(JUnit4.class)
4141
@WithExperimentalGarbageCollection
4242
public static class TestWithThreadLocal {
4343
@Test
44-
public void dummy() {
44+
public void fake() {
4545
ThreadLocalUsage threadLocalUsage = new ThreadLocalUsage();
4646
}
4747
}

gwtmockito/src/test/java/com/google/gwtmockito/GwtMockitoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public YetAnotherInterface getFake(Class<?> type) {
547547

548548
@Test
549549
public void assertThatShouldWork() {
550-
// This fails when org.hamcrest isn't added to the package blacklist
550+
// This fails when org.hamcrest isn't added to the package excludelist
551551
Assert.assertThat("123", CoreMatchers.containsString("12"));
552552
}
553553

gwtmockito/src/test/java/com/google/gwtmockito/GwtMockitoTestRunnerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void shouldLoadClassFromStandardClassLoaderEvenWhenRequestedByChildClassL
4545
throws InitializationError, ClassNotFoundException {
4646

4747
// Runner should reload the test class in its own ClassLoader.
48-
GwtMockitoTestRunner runner = new GwtMockitoTestRunner(DummyTestClass.class) {
48+
GwtMockitoTestRunner runner = new GwtMockitoTestRunner(FakeTestClass.class) {
4949

5050
@Override
5151
protected Collection<String> getPackagesToLoadViaStandardClassloader() {
@@ -58,7 +58,7 @@ protected Collection<String> getPackagesToLoadViaStandardClassloader() {
5858
// Assert that test class is loaded from a different class loader.
5959
TestClass testClass = runner.getTestClass();
6060
Class<?> javaClass = testClass.getJavaClass();
61-
assertNotEquals(DummyTestClass.class, javaClass);
61+
assertNotEquals(FakeTestClass.class, javaClass);
6262

6363
// Create a child ClassLoader of the one used by Runner.
6464
ClassLoader gwtMockitoClassLoader = javaClass.getClassLoader();
@@ -76,10 +76,10 @@ protected Collection<String> getPackagesToLoadViaStandardClassloader() {
7676
}
7777

7878
@RunWith(JUnit4.class)
79-
public static class DummyTestClass {
79+
public static class FakeTestClass {
8080

8181
@Test
82-
public void dummy() {
82+
public void fake() {
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)