This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/master by this push:
new f0774338a6 CAUSEWAY-3404: purge test duplicate (leftover from prev.
commit)
f0774338a6 is described below
commit f0774338a6fe3dbbe190af58f9bf3a90cab0498c
Author: Andi Huber <[email protected]>
AuthorDate: Thu May 11 19:01:22 2023 +0200
CAUSEWAY-3404: purge test duplicate (leftover from prev. commit)
---
.../commons/StringUtils_StripLeadingSlashTest.java | 55 ----------------------
1 file changed, 55 deletions(-)
diff --git
a/core/metamodel/src/test/java/org/apache/causeway/core/metamodel/commons/StringUtils_StripLeadingSlashTest.java
b/core/metamodel/src/test/java/org/apache/causeway/core/metamodel/commons/StringUtils_StripLeadingSlashTest.java
deleted file mode 100644
index 99d185f8bc..0000000000
---
a/core/metamodel/src/test/java/org/apache/causeway/core/metamodel/commons/StringUtils_StripLeadingSlashTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.causeway.core.metamodel.commons;
-
-import org.junit.jupiter.api.Test;
-
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.jupiter.api.Assertions.assertNull;
-
-import org.apache.causeway.commons.internal.base._Strings;
-
-class StringUtils_StripLeadingSlashTest {
-
- @Test
- void shouldStripIfThereIsOne() {
- assertThat(stripLeadingSlash("/foobar"), is("foobar"));
- }
-
- @Test
- void shouldLeaveUnchangedIfThereIsNone() {
- assertThat(stripLeadingSlash("foobar"), is("foobar"));
- }
-
- @Test
- void shouldConvertSolitarySlashToEmptyString() {
- assertThat(stripLeadingSlash("/"), is(""));
- }
-
- @Test
- void identityOnNull() {
- assertNull(stripLeadingSlash(null));
- }
-
- private static String stripLeadingSlash(final String input) {
- return _Strings.removePrefix(input, "/");
- }
-
-}