forked from genjosanzo/mule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MULE-8405: Removing parsing from resource loading logic. Adding test …
…case for scenario.
- Loading branch information
afelisatti
committed
Mar 25, 2015
1 parent
781d3f3
commit ce3314b
Showing
5 changed files
with
46 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...tp/src/test/java/org/mule/transport/http/functional/HttpsSpecialCharKeystoreTestCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | ||
* The software in this package is published under the terms of the CPAL v1.0 | ||
* license, a copy of which has been included with this distribution in the | ||
* LICENSE.txt file. | ||
*/ | ||
package org.mule.transport.http.functional; | ||
|
||
import org.mule.util.IOUtils; | ||
|
||
import java.io.File; | ||
|
||
import org.apache.commons.io.FileUtils; | ||
|
||
public class HttpsSpecialCharKeystoreTestCase extends HttpsFunctionalTestCase | ||
{ | ||
|
||
public HttpsSpecialCharKeystoreTestCase(ConfigVariant variant, String configResources) | ||
{ | ||
super(variant, configResources); | ||
} | ||
|
||
@Override | ||
protected void doSetUpBeforeMuleContextCreation() throws Exception | ||
{ | ||
super.doSetUpBeforeMuleContextCreation(); | ||
File serverKeystore = new File(IOUtils.getResourceAsUrl(SERVER_KEYSTORE, getClass()).getPath()); | ||
File serverKeystoreCopy = new File(workingDirectory.getRoot().getPath() + "/dir$/serverKeystore"); | ||
FileUtils.copyFile(serverKeystore, serverKeystoreCopy); | ||
//this is a SystemProperty rule defined in the superclass | ||
System.setProperty(SERVER_KEYSTORE_PATH, serverKeystoreCopy.getPath()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters