You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2021/03/20 06:50:03 UTC
[sling-org-apache-sling-testing-osgi-mock] branch master updated:
eliminate usage of deprecated method
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-osgi-mock.git
The following commit(s) were added to refs/heads/master by this push:
new b69e1bd eliminate usage of deprecated method
b69e1bd is described below
commit b69e1bde7eb82004ec8f341105d213ef5123cb1c
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Sat Mar 20 07:49:49 2021 +0100
eliminate usage of deprecated method
---
.../java/org/apache/sling/testing/mock/osgi/MockBundleTest.java | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/core/src/test/java/org/apache/sling/testing/mock/osgi/MockBundleTest.java b/core/src/test/java/org/apache/sling/testing/mock/osgi/MockBundleTest.java
index 633974c..3f73c32 100644
--- a/core/src/test/java/org/apache/sling/testing/mock/osgi/MockBundleTest.java
+++ b/core/src/test/java/org/apache/sling/testing/mock/osgi/MockBundleTest.java
@@ -21,14 +21,12 @@ package org.apache.sling.testing.mock.osgi;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
-import org.hamcrest.CoreMatchers;
import org.junit.Before;
import org.junit.Test;
import org.osgi.framework.Bundle;
@@ -97,7 +95,7 @@ public class MockBundleTest {
List<String> paths = Collections.list(entryPaths);
- assertThat(paths.size(), CoreMatchers.is(1));
+ assertEquals(1, paths.size());
assertTrue(paths.contains("bundleData/nested/"));
}
@@ -108,7 +106,7 @@ public class MockBundleTest {
List<String> paths = Collections.list(entryPaths);
- assertThat(paths.size(), CoreMatchers.is(1));
+ assertEquals(1, paths.size());
assertTrue(paths.contains("bundleData/nested/"));
}
@@ -152,7 +150,7 @@ public class MockBundleTest {
List<String> paths = Collections.list(entryPaths);
- assertThat(paths.size(), CoreMatchers.is(2));
+ assertEquals(2, paths.size());
assertTrue(paths.contains("bundleData/nested/first.txt"));
assertTrue(paths.contains("bundleData/nested/second.txt"));
}