Beispiel #1
0
        public void initialize_the_object_with_key(String arg1)
        {
            // Write code here that turns the phrase above into concrete actions
            EvnContext evnContext = TestUtil.getEvnContext();

            subService = new Bucket(evnContext, bucketName);
            evnContext.setLog_level(QSConstant.LOGGER_INFO);
            Bucket.PutObjectInput input = new Bucket.PutObjectInput();
            //objectOutput = subService.PutObject(arg1,input);
            test_object = arg1;
        }
Beispiel #2
0
        public void put_object_with_key(String arg1)
        {
            // Write code here that turns the phrase above into concrete actions
            EvnContext evnContext = TestUtil.getEvnContext();

            evnContext.setLog_level(QSConstant.LOGGER_INFO);
            subService = new Bucket(evnContext, bucketName);
            Bucket.PutObjectInput input = new Bucket.PutObjectInput();
            FileStream            f     = new FileStream("D:\\2.txt", FileMode.Open);

            input.setBodyInputFile(f);
            input.setContentLength((int)f.Length);
            test_object     = chinesePrefix + arg1 + chineseSuffix;
            putObjectOutput = subService.putObject(test_object, input);
        }