Author: rdonkin
Date: Sun Dec 8 19:11:33 2013
New Revision: 1549126
URL: http://svn.apache.org/r1549126
Log:
Add test: testDocumentImplUtilsConstructor
Added:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/DocumentImplUtilsTest.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java?rev=1549126&r1=1549125&r2=1549126&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/DocumentImplUtils.java
Sun Dec 8 19:11:33 2013
@@ -35,7 +35,7 @@ public final class DocumentImplUtils {
/**
* Instantiates a new document impl utils.
*/
- private DocumentImplUtils() {
+ public DocumentImplUtils() {
super();
}
@@ -80,7 +80,7 @@ public final class DocumentImplUtils {
* the file
* @return true, if is zip
*/
- public boolean isZip(final File file) {
+ public static boolean isZip(final File file) {
boolean result;
try {
result = isZipStream(new FileInputStream(file));
Added:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/DocumentImplUtilsTest.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/DocumentImplUtilsTest.java?rev=1549126&view=auto
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/DocumentImplUtilsTest.java
(added)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/DocumentImplUtilsTest.java
Sun Dec 8 19:11:33 2013
@@ -0,0 +1,31 @@
+/*
+ * 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.rat.document.impl;
+
+import static org.junit.Assert.assertNotNull;
+
+import org.junit.Test;
+
+public class DocumentImplUtilsTest {
+
+ @Test
+ public void testDocumentImplUtilsConstructor() {
+ assertNotNull(new DocumentImplUtils());
+ }
+}