1
0
mirror of https://github.com/Rogiel/httpchannel synced 2025-12-06 07:32:50 +00:00

Removes uneeded httpchannel-service-4shared dependency

This commit is contained in:
2012-01-20 00:52:51 -02:00
parent 95b549da2c
commit 6f608029b3
3 changed files with 17 additions and 14 deletions

View File

@@ -12,27 +12,17 @@
<name>HttpChannel/Service/4Shared</name> <name>HttpChannel/Service/4Shared</name>
<description>Provides upload access to 4shared.com</description> <description>Provides upload access to 4shared.com</description>
<dependencies> <dependencies>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2</artifactId>
<version>1.6.1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.apache.james</groupId>
<artifactId>apache-mime4j</artifactId>
<version>0.7.2</version>
<type>pom</type>
</dependency>
<dependency> <dependency>
<groupId>javax.xml.ws</groupId> <groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId> <artifactId>jaxws-api</artifactId>
<version>2.2.7</version> <version>2.2.7</version>
<scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.sun.xml.ws</groupId> <groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId> <artifactId>jaxws-rt</artifactId>
<version>2.2.7-promoted-b09</version> <version>2.2.7-promoted-b09</version>
<scope>runtime</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@@ -5,11 +5,14 @@ package org.httpchannel.service.fourshared;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.Properties;
import junit.framework.Assert; import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import com.rogiel.httpchannel.service.helper.AuthenticationServices; import com.rogiel.httpchannel.service.helper.AuthenticationServices;
@@ -21,10 +24,19 @@ import com.rogiel.httpchannel.util.ChannelUtils;
*/ */
public class FourSharedServiceTest { public class FourSharedServiceTest {
private final FourSharedService service = new FourSharedService(); 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 @Test
public void test() throws IOException { 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 final Path path = Paths
.get("../src/test/resources/upload-test-file.txt"); .get("../src/test/resources/upload-test-file.txt");

View File

@@ -0,0 +1 @@
/login.properties