File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed 
tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/server/wadl Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11/* 
2-  * Copyright (c) 2020, 2022  Oracle and/or its affiliates. All rights reserved. 
2+  * Copyright (c) 2020, 2024  Oracle and/or its affiliates. All rights reserved. 
33 * 
44 * This program and the accompanying materials are made available under the 
55 * terms of the Eclipse Public License v. 2.0, which is available at 
3535import  java .io .ByteArrayOutputStream ;
3636import  java .io .OutputStream ;
3737import  java .io .PrintStream ;
38+ import  java .util .List ;
39+ import  java .util .Arrays ;
40+ import  java .util .Collections ;
3841
3942public  class  NoJAXBNoWadlTest  extends  JerseyTest  {
4043
@@ -74,7 +77,9 @@ public void testOptionsNoWadl() {
7477
7578        try  (Response  r  = target ("dummy" ).request (MediaTypes .WADL_TYPE ).options ()) {
7679            String  headers  = r .getHeaderString (HttpHeaders .ALLOW );
77-             Assertions .assertEquals ("OPTIONS,PUT" , headers );
80+             List <String > methods  = Arrays .asList (headers .split ("," ));
81+             Collections .sort (methods );
82+             Assertions .assertEquals (Arrays .asList ("OPTIONS" , "PUT" ), methods );
7883        }
7984        System .out .println (readableStream .toString ());
8085        Assertions .assertEquals (!shouldHaveJaxb ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments