/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * 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.
 * </p>
 */

package io.shardingsphere.dbtest.cases.assertion.dcl;

import io.shardingsphere.dbtest.cases.assertion.root.IntegrateTestCaseAssertion;
import lombok.Getter;

import javax.xml.bind.annotation.XmlAttribute;

/**
 * JAXB definition of DCL integrate test case assertion.
 *
 * @author panjuan
 */
@Getter
public final class DCLIntegrateTestCaseAssertion extends IntegrateTestCaseAssertion {
    
    @XmlAttribute(name = "user")
    private String user;
    
    @XmlAttribute(name = "host")
    private String host;
    
    @XmlAttribute(name = "type")
    private String type;
    
    @XmlAttribute(name = "new-name")
    private String newName;
}

@@ -1036,75 +1036,16 @@
  = %22
-user%22)%0A    private String user;%0A    %0A    @XmlAttribute(name = %22host
+init-sql
 %22)%0A 
@@ -1066,12 +1066,15 @@
 ing 
-host
+initSQL
 ;%0A  
@@ -1102,20 +1102,25 @@
 name = %22
-type
+clean-sql
 %22)%0A    p
@@ -1137,82 +1137,21 @@
 ing 
-type;%0A    %0A    @XmlAttribute(name = %22new-name%22)%0A    private String newName;
+cleanSQL;%0A    
 %0A%7D%0A

add initSQL cleanSQL