This is an automated email from the ASF dual-hosted git repository.

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git


The following commit(s) were added to refs/heads/master by this push:
     new 07c271e00 Remove empty test case
07c271e00 is described below

commit 07c271e00e0516117c63c59f01640a310a8a49a0
Author: Andreas Veithen <[email protected]>
AuthorDate: Sat Jan 10 20:34:11 2026 +0000

    Remove empty test case
---
 .../apache/axiom/attachments/PartOnFileTest.java   | 47 ----------------------
 1 file changed, 47 deletions(-)

diff --git 
a/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
 
b/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
index 687539dfb..180927519 100644
--- 
a/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
+++ 
b/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
@@ -71,53 +71,6 @@ public class PartOnFileTest extends TestCase {
         assertEquals("image/jpeg", dh.getContentType());
     }
 
-    public void testGetAllheaders() throws Exception {
-
-//        InputStream inStream = new 
FileInputStream(getTestResourceFile(inMimeFileName));
-//             Attachments attachments = new Attachments(inStream, 
contentTypeString, true, temp.getPath(), "1");
-//
-//             Part p = 
attachments.getDataHandler("1.urn:uuid:[email protected]");
-//             
-//             if (!(p instanceof PartOnFile)) {
-//                     fail("Expected PartOnFile");
-//             }
-//             
-//             
assertEquals("<1.urn:uuid:[email protected]>", 
p.getContentID());
-//
-//             // Check if the enumeration works
-//             p.addHeader("Some-New-Header", "TestNH");
-//             
-//             Enumeration e = p.getAllHeaders();
-//             boolean cTypeFound = false;
-//             boolean cTransferEncFound = false;
-//             boolean cIdFound = false;
-//             boolean snhFound = false;
-//
-//             while (e.hasMoreElements()) {
-//                     Header h = (Header) e.nextElement();
-//                     if (h.getName().toLowerCase().equals("content-type")) {
-//                             cTypeFound = true;
-//                     }
-//                     
-//                     if 
(h.getName().toLowerCase().equals("content-transfer-encoding")) {
-//                             cTransferEncFound = true;
-//                     }
-//                     
-//                     if (h.getName().toLowerCase().equals("content-id")) {
-//                             cIdFound = true;
-//                     }
-//                     
-//                     if 
(h.getName().toLowerCase().equals("some-new-header")) {
-//                             snhFound = true;
-//                     }
-//             }
-//             
-//             if (!cTypeFound || !cTransferEncFound || !cIdFound || 
!snhFound) {
-//                     fail("Header enumeration failed");
-//             }
-
-    }
-
     private void createTemporaryDirectory() throws Exception {
         temp = File.createTempFile("partOnFileTest", ".tmp");
 

Reply via email to