// Path: src/main/java/com/groupon/vertx/memcache/client/JsendStatus.java
// public enum JsendStatus {
//     success,
//     error,
//     fail;
// }
// 
// Path: src/main/java/com/groupon/vertx/memcache/client/response/DeleteCommandResponse.java
// public final class DeleteCommandResponse extends MemcacheCommandResponse {
//     private final String data;
// 
//     private DeleteCommandResponse(Builder builder) {
//         super(builder);
//         data = builder.data;
//     }
// 
//     public String getData() {
//         return data;
//     }
// 
//     /**
//      * Builder for the DeleteCommandResponse
//      */
//     public static class Builder extends AbstractBuilder<Builder, DeleteCommandResponse> {
//         private String data;
// 
//         @Override
//         protected Builder self() {
//             return this;
//         }
// 
//         public Builder setData(String value) {
//             data = value;
//             return self();
//         }
// 
//         @Override
//         public DeleteCommandResponse build() {
//             return new DeleteCommandResponse(this);
//         }
//     }
// }


import static org.junit.Assert.assertEquals;
import io.vertx.core.buffer.Buffer;
import org.junit.Before;
import org.junit.Test;
import com.groupon.vertx.memcache.client.JsendStatus;
import com.groupon.vertx.memcache.client.response.DeleteCommandResponse;
/**
 * Copyright 2014 Groupon.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.groupon.vertx.memcache.codec;




/**
 * Tests for <code>DeleteCommandResponseCodec</code>.
 *
 * @author Stuart Siegrist (fsiegrist at groupon dot com)
 * @since 3.1.0
 */
public class DeleteCommandResponseCodecTest {
    private DeleteCommandResponseCodec codec;
    private DeleteCommandResponse command;

    @Before
    public void setUp() {
        codec = new DeleteCommandResponseCodec();
        command = new DeleteCommandResponse.Builder()
                .setData("data")
                .setStatus(JsendStatus.success)
                .setMessage("message")
                .build();
    }

    @Test
    public void testName() {
        assertEquals(codec.getClass().getSimpleName(), codec.name());
    }

    @Test
    public void testTransform() {
        assertEquals(command, codec.transform(command));
    }

// Path: src/main/java/com/groupon/vertx/memcache/client/JsendStatus.java
// public enum JsendStatus {
//     success,
//     error,
//     fail;
// }
// 
// Path: src/main/java/com/groupon/vertx/memcache/client/response/DeleteCommandResponse.java
// public final class DeleteCommandResponse extends MemcacheCommandResponse {
//     private final String data;
// 
//     private DeleteCommandResponse(Builder builder) {
//         super(builder);
//         data = builder.data;
//     }
// 
//     public String getData() {
//         return data;
//     }
// 
//     /**
//      * Builder for the DeleteCommandResponse
//      */
//     public static class Builder extends AbstractBuilder<Builder, DeleteCommandResponse> {
//         private String data;
// 
//         @Override
//         protected Builder self() {
//             return this;
//         }
// 
//         public Builder setData(String value) {
//             data = value;
//             return self();
//         }
// 
//         @Override
//         public DeleteCommandResponse build() {
//             return new DeleteCommandResponse(this);
//         }
//     }
// }


// Path: src/test/java/com/groupon/vertx/memcache/codec/DeleteCommandResponseCodecTest.java
import static org.junit.Assert.assertEquals;
import io.vertx.core.buffer.Buffer;
import org.junit.Before;
import org.junit.Test;
import com.groupon.vertx.memcache.client.JsendStatus;
import com.groupon.vertx.memcache.client.response.DeleteCommandResponse;

/**
 * Copyright 2014 Groupon.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.groupon.vertx.memcache.codec;




/**
 * Tests for <code>DeleteCommandResponseCodec</code>.
 *
 * @author Stuart Siegrist (fsiegrist at groupon dot com)
 * @since 3.1.0
 */
public class DeleteCommandResponseCodecTest {
    private DeleteCommandResponseCodec codec;
    private DeleteCommandResponse command;

    @Before
    public void setUp() {
        codec = new DeleteCommandResponseCodec();
        command = new DeleteCommandResponse.Builder()
                .setData("data")
                .setStatus(JsendStatus.success)
                .setMessage("message")
                .build();
    }

    @Test
    public void testName() {
        assertEquals(codec.getClass().getSimpleName(), codec.name());
    }

    @Test
    public void testTransform() {
        assertEquals(command, codec.transform(command));
    }

    @Test