mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
migrated jcifs, mime4j to latest
This commit is contained in:
1 parent
91a9527bc4
commit
f2b0f41d84
4 files changed
+52
-35
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package net.yacy.cora.document.id;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
@@ -15,10 +16,21 @@ import java.util.TreeSet;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import jcifs.context.SingletonContext;
|
||||
import jcifs.smb.SmbFile;
|
||||
|
||||
/**
|
||||
* Automated unit tests for the {@link MultiProtocolURL} class.
|
||||
*/
|
||||
public class MultiProtocolURLTest {
|
||||
|
||||
@Test
|
||||
public void testSmbFileUsesSharedContext() throws MalformedURLException {
|
||||
final MultiProtocolURL url = new MultiProtocolURL("smb://example.test/share/file.txt");
|
||||
try (final SmbFile smbFile = url.getSmbFile()) {
|
||||
assertSame(SingletonContext.getInstance(), smbFile.getContext());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSessionIdRemoval() throws MalformedURLException {
|
||||
@@ -511,4 +523,3 @@ public class MultiProtocolURLTest {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user