Loading ravenwood/tests/coretest/test/com/android/ravenwoodtest/coretest/RavenwoodMockitoTest.java +15 −0 Original line number Diff line number Diff line Loading @@ -16,11 +16,19 @@ package com.android.ravenwoodtest.coretest; import static org.junit.Assert.assertThrows; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import org.junit.Test; public class RavenwoodMockitoTest { private static class MockClass { void foo() { throw new RuntimeException("Unsupported!!"); } } @Test public void checkMockitoClasses() { // DexMaker should not exist Loading @@ -32,4 +40,11 @@ public class RavenwoodMockitoTest { ClassNotFoundException.class, () -> Class.forName("org.mockito.Matchers")); } @Test public void checkMockitoActuallyWorks() { var mock = mock(MockClass.class); doNothing().when(mock).foo(); mock.foo(); } } ravenwood/tools/ravenizer/src/com/android/platform/test/ravenwood/ravenizer/Ravenizer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,7 @@ class Ravenizer { } } if (includeUnsupportedMockito(allClasses)) { log.w("Unsupported Mockito detected in $inJar}!") log.w("Unsupported Mockito detected in $inJar!") } stats.totalProcessTime = log.vTime("$executableName processing $inJar") { Loading Loading
ravenwood/tests/coretest/test/com/android/ravenwoodtest/coretest/RavenwoodMockitoTest.java +15 −0 Original line number Diff line number Diff line Loading @@ -16,11 +16,19 @@ package com.android.ravenwoodtest.coretest; import static org.junit.Assert.assertThrows; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import org.junit.Test; public class RavenwoodMockitoTest { private static class MockClass { void foo() { throw new RuntimeException("Unsupported!!"); } } @Test public void checkMockitoClasses() { // DexMaker should not exist Loading @@ -32,4 +40,11 @@ public class RavenwoodMockitoTest { ClassNotFoundException.class, () -> Class.forName("org.mockito.Matchers")); } @Test public void checkMockitoActuallyWorks() { var mock = mock(MockClass.class); doNothing().when(mock).foo(); mock.foo(); } }
ravenwood/tools/ravenizer/src/com/android/platform/test/ravenwood/ravenizer/Ravenizer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -127,7 +127,7 @@ class Ravenizer { } } if (includeUnsupportedMockito(allClasses)) { log.w("Unsupported Mockito detected in $inJar}!") log.w("Unsupported Mockito detected in $inJar!") } stats.totalProcessTime = log.vTime("$executableName processing $inJar") { Loading