myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] branch master updated: clean up
Date Fri, 18 May 2018 08:41:13 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 221f589  clean up
221f589 is described below

commit 221f589492e481b81f48e0ff2277703a151dc6c1
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Fri May 18 10:24:08 2018 +0200

    clean up
---
 .../myfaces/tobago/context/ResourceUtils.java      |  8 +++++
 .../tobago/context/ResourceUtilsUnitTest.java      | 38 ----------------------
 2 files changed, 8 insertions(+), 38 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceUtils.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceUtils.java
index a8caff4..82b5cae 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceUtils.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ResourceUtils.java
@@ -19,6 +19,10 @@
 
 package org.apache.myfaces.tobago.context;
 
+/**
+ * @deprecated since Tobago 4.2.2
+ */
+@Deprecated
 public final class ResourceUtils {
 
   /**
@@ -68,6 +72,10 @@ public final class ResourceUtils {
     return folder + FOLDER_SEPARATOR + component + SEPARATOR + name + DOT + extension;
   }
 
+  /**
+   * @deprecated since Tobago 4.2.2
+   */
+  @Deprecated
   public static String addPostfixToFilename(final String filename, final String postfix)
{
     final int dotIndex = filename.lastIndexOf('.');
     if (dotIndex == -1) {
diff --git a/tobago-core/src/test/java/org/apache/myfaces/tobago/context/ResourceUtilsUnitTest.java
b/tobago-core/src/test/java/org/apache/myfaces/tobago/context/ResourceUtilsUnitTest.java
deleted file mode 100644
index afdd1c1..0000000
--- a/tobago-core/src/test/java/org/apache/myfaces/tobago/context/ResourceUtilsUnitTest.java
+++ /dev/null
@@ -1,38 +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.myfaces.tobago.context;
-
-import org.junit.Assert;
-import org.junit.Test;
-
-public class ResourceUtilsUnitTest {
-
-  @Test
-  public void testAddPostfixToFilename() {
-    Assert.assertEquals("folder/treeNode-iconDisabled.gif",
-        ResourceUtils.addPostfixToFilename("folder/treeNode-icon.gif", "Disabled"));
-  }
-
-  @Test
-  public void testAddPostfixToFilenameWithoutExtension() {
-    Assert.assertEquals("folder/treeNode-iconDisabled",
-        ResourceUtils.addPostfixToFilename("folder/treeNode-icon", "Disabled"));
-  }
-}

-- 
To stop receiving notification emails like this one, please contact
lofwyr@apache.org.

Mime
View raw message