@@ -0,0 +1,1440 @@
+package cn.strong.fastdfs.core;%0A%0Aimport static java.nio.charset.StandardCharsets.UTF_8;%0A%0Aimport java.net.InetSocketAddress;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Aimport cn.strong.fastdfs.client.FastdfsTemplate;%0Aimport cn.strong.fastdfs.client.Settings;%0Aimport cn.strong.fastdfs.utils.IOUtils;%0Aimport cn.strong.fastdfs.utils.Seed;%0A%0Apublic class SimpleFastdfsClientIT %7B%0A%0A%09private FastdfsTemplate template;%0A%09private SimpleFastdfsClient client;%0A%0A%09@Before%0A%09public void setup() %7B%0A%09%09template = new FastdfsTemplate(new Settings());%0A%09%09List%3CInetSocketAddress%3E hosts = Arrays%0A%09%09%09%09.asList(new InetSocketAddress(%22192.168.20.68%22, 22122));%0A%09%09Seed%3CInetSocketAddress%3E seed = Seed.create(hosts, Seed.PICK_ROUND_ROBIN);%0A%09%09FastdfsClient delegate = new FastdfsClient(template, seed);%0A%09%09client = new SimpleFastdfsClient(delegate);%0A%09%7D%0A%0A%09@After%0A%09public void destroy() %7B%0A%09%09IOUtils.closeQuietly(template);%0A%09%7D%0A%0A%09@Test%0A%09@Ignore%0A%09public void testUploadByteArrayString() %7B%0A%09%09byte%5B%5D bytes = %22Hello Fastdfs%22.getBytes(UTF_8);%0A%09%09String path = client.upload(bytes, %22txt%22);%0A%09%09System.out.println(%22path: %22 + path);%0A%09%7D%0A%0A%09@Test%0A%09@Ignore%0A%09public void testDownload() %7B%0A%09%09String path = %22group1/M00/0A/99/wKgURFeK0OOAGjXSAAAADSghvvI552.txt%22;%0A%09%09byte%5B%5D bytes = client.download(path);%0A%09%09String data = new String(bytes, UTF_8);%0A%09%09System.out.println(%22downloaded: %22 + data);%0A%09%7D%0A%0A%7D%0A

add ITest for SimpleFastdfsClient