Skip to content

Commit

Permalink
[SCB-904] add license
Browse files Browse the repository at this point in the history
  • Loading branch information
weichao666 authored and liubao68 committed Sep 17, 2018
1 parent 10c946c commit 3cd2dc2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 org.apache.servicecomb.it.testcase;

import static org.junit.Assert.assertEquals;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

Expand Down Expand Up @@ -129,11 +144,11 @@ protected void fromAttribute_rt(Consumers<AnnotatedAttributeIntf> consumers) {
body.put("input", "default");
body.put("input2", "fromValue");
body.put("input3", "fromName");
ResponseEntity<Date> result = consumers.getSCBRestTemplate()
ResponseEntity<String> result = consumers.getSCBRestTemplate()
.exchange("/fromAttribute",
HttpMethod.POST,
new HttpEntity<>(body),
Date.class);
String.class);
assertEquals("default,fromValue,fromName", result.getBody());
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 org.apache.servicecomb.it.schema;

import org.apache.servicecomb.provider.rest.common.RestSchema;
Expand Down

0 comments on commit 3cd2dc2

Please sign in to comment.