diff --git a/httpchannel-service/httpchannel-service-4shared/pom.xml b/httpchannel-service/httpchannel-service-4shared/pom.xml
index eebd78d..e996829 100644
--- a/httpchannel-service/httpchannel-service-4shared/pom.xml
+++ b/httpchannel-service/httpchannel-service-4shared/pom.xml
@@ -12,27 +12,17 @@
HttpChannel/Service/4Shared
Provides upload access to 4shared.com
-
- org.apache.axis2
- axis2
- 1.6.1
- pom
-
-
- org.apache.james
- apache-mime4j
- 0.7.2
- pom
-
javax.xml.ws
jaxws-api
2.2.7
+ compile
com.sun.xml.ws
jaxws-rt
2.2.7-promoted-b09
+ runtime
diff --git a/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java b/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java
index 59e5ac8..676e2a7 100644
--- a/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java
+++ b/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java
@@ -5,11 +5,14 @@ package org.httpchannel.service.fourshared;
import java.io.IOException;
import java.net.URI;
+import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.util.Properties;
import junit.framework.Assert;
+import org.junit.Before;
import org.junit.Test;
import com.rogiel.httpchannel.service.helper.AuthenticationServices;
@@ -21,11 +24,20 @@ import com.rogiel.httpchannel.util.ChannelUtils;
*/
public class FourSharedServiceTest {
private final FourSharedService service = new FourSharedService();
+ private final Properties properties = new Properties();
+
+ @Before
+ public void setUp() throws IOException {
+ properties.load(Files.newInputStream(Paths
+ .get("../src/test/resources/login.properties")));
+ }
@Test
public void test() throws IOException {
- AuthenticationServices.authenticator(service, "", "").login();
-
+ AuthenticationServices.authenticator(service,
+ properties.getProperty("4shared.username"),
+ properties.getProperty("4shared.password")).login();
+
final Path path = Paths
.get("../src/test/resources/upload-test-file.txt");
final URI uri = ChannelUtils.upload(service, path);
diff --git a/httpchannel-service/src/test/resources/.gitignore b/httpchannel-service/src/test/resources/.gitignore
new file mode 100644
index 0000000..93d95f2
--- /dev/null
+++ b/httpchannel-service/src/test/resources/.gitignore
@@ -0,0 +1 @@
+/login.properties