package org.mvnsearch.ali.oss.spring.shell.commands;

import junit.framework.TestCase;
import org.mvnsearch.ali.oss.spring.services.impl.AliyunOssServiceImpl;

/**
 * oss operation commands test
 *
 * @author linux_china
 */
public class OssOperationCommandsTest extends TestCase {
    /**
     * oss operation commands
     */
    private OssOperationCommands commands;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        this.commands = new OssOperationCommands();
        this.commands.setAliyunOssService(new AliyunOssServiceImpl());
    }

    /**
     * test to list buckets
     */
    public void testDf() {
        commands.use("faxianla_temp");
        System.out.println(commands.df());
    }
}

@@ -365,16 +365,93 @@
 mands;%0A%0A
+    /**%0A     * init object%0A     *%0A     * @throws Exception exception%0A     */%0A
     @Ove
@@ -813,11 +813,272 @@
 );%0A    %7D
+%0A%0A    /**%0A     * test to create bucket%0A     */%0A    public void testCreate() %7B%0A        String bucketName = %22abc123%22;%0A        System.out.println(commands.create(bucketName));%0A        assertTrue(%22Failed to create bucket%22, commands.df().contains(bucketName));%0A    %7D
 %0A%7D%0A

add testCreate and javadoc update