Skip to content

Commit a0ffc71

Browse files
authored
Merge pull request #1300 from kazuki43zoo/drop-usesjava8
Move parent from usesjava8 on test
2 parents 8efb2cc + ab4998f commit a0ffc71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+111
-160
lines changed

src/test/java/org/apache/ibatis/submitted/usesjava8/default_method/CreateDB.sql renamed to src/test/java/org/apache/ibatis/submitted/default_method/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--
2-
-- Copyright 2009-2016 the original author or authors.
2+
-- Copyright 2009-2018 the original author or authors.
33
--
44
-- Licensed under the Apache License, Version 2.0 (the "License");
55
-- you may not use this file except in compliance with the License.

src/test/java/org/apache/ibatis/submitted/usesjava8/default_method/DefaultMethodTest.java renamed to src/test/java/org/apache/ibatis/submitted/default_method/DefaultMethodTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.usesjava8.default_method;
16+
package org.apache.ibatis.submitted.default_method;
1717

1818
import static org.junit.Assert.*;
1919

@@ -24,7 +24,7 @@
2424
import org.apache.ibatis.session.SqlSession;
2525
import org.apache.ibatis.session.SqlSessionFactory;
2626
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
27-
import org.apache.ibatis.submitted.usesjava8.default_method.Mapper.SubMapper;
27+
import org.apache.ibatis.submitted.default_method.Mapper.SubMapper;
2828
import org.junit.BeforeClass;
2929
import org.junit.Test;
3030

@@ -36,13 +36,13 @@ public class DefaultMethodTest {
3636
public static void setUp() throws Exception {
3737
// create an SqlSessionFactory
3838
try (Reader reader = Resources.getResourceAsReader(
39-
"org/apache/ibatis/submitted/usesjava8/default_method/mybatis-config.xml")) {
39+
"org/apache/ibatis/submitted/default_method/mybatis-config.xml")) {
4040
sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader);
4141
}
4242

4343
// populate in-memory database
4444
BaseDataTest.runScript(sqlSessionFactory.getConfiguration().getEnvironment().getDataSource(),
45-
"org/apache/ibatis/submitted/usesjava8/default_method/CreateDB.sql");
45+
"org/apache/ibatis/submitted/default_method/CreateDB.sql");
4646
}
4747

4848
@Test

src/test/java/org/apache/ibatis/submitted/usesjava8/default_method/Mapper.java renamed to src/test/java/org/apache/ibatis/submitted/default_method/Mapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2017 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.usesjava8.default_method;
16+
package org.apache.ibatis.submitted.default_method;
1717

1818
import org.apache.ibatis.annotations.Param;
1919
import org.apache.ibatis.annotations.Select;

src/test/java/org/apache/ibatis/submitted/usesjava8/default_method/PackageMapper.java renamed to src/test/java/org/apache/ibatis/submitted/default_method/PackageMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2017 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.usesjava8.default_method;
16+
package org.apache.ibatis.submitted.default_method;
1717

1818
import org.apache.ibatis.annotations.Select;
1919

src/test/java/org/apache/ibatis/submitted/usesjava8/default_method/User.java renamed to src/test/java/org/apache/ibatis/submitted/default_method/User.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2016 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.usesjava8.default_method;
16+
package org.apache.ibatis.submitted.default_method;
1717

1818
public class User {
1919

src/test/java/org/apache/ibatis/submitted/usesjava8/default_method/mybatis-config.xml renamed to src/test/java/org/apache/ibatis/submitted/default_method/mybatis-config.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<!--
33
4-
Copyright 2009-2017 the original author or authors.
4+
Copyright 2009-2018 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -36,9 +36,9 @@
3636
</environments>
3737

3838
<mappers>
39-
<mapper class="org.apache.ibatis.submitted.usesjava8.default_method.Mapper" />
40-
<mapper class="org.apache.ibatis.submitted.usesjava8.default_method.Mapper$SubMapper" />
41-
<mapper class="org.apache.ibatis.submitted.usesjava8.default_method.PackageMapper" />
39+
<mapper class="org.apache.ibatis.submitted.default_method.Mapper" />
40+
<mapper class="org.apache.ibatis.submitted.default_method.Mapper$SubMapper" />
41+
<mapper class="org.apache.ibatis.submitted.default_method.PackageMapper" />
4242
</mappers>
4343

4444
</configuration>

src/test/java/org/apache/ibatis/submitted/usesjava8/keycolumn/CreateDB.sql renamed to src/test/java/org/apache/ibatis/submitted/keycolumn/CreateDB.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--
2-
-- Copyright 2009-2017 the original author or authors.
2+
-- Copyright 2009-2018 the original author or authors.
33
--
44
-- Licensed under the Apache License, Version 2.0 (the "License");
55
-- you may not use this file except in compliance with the License.

src/test/java/org/apache/ibatis/submitted/usesjava8/keycolumn/InsertMapper.java renamed to src/test/java/org/apache/ibatis/submitted/keycolumn/InsertMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2017 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.usesjava8.keycolumn;
16+
package org.apache.ibatis.submitted.keycolumn;
1717

1818
import org.apache.ibatis.annotations.Insert;
1919
import org.apache.ibatis.annotations.Options;

src/test/java/org/apache/ibatis/submitted/usesjava8/keycolumn/InsertMapper.xml renamed to src/test/java/org/apache/ibatis/submitted/keycolumn/InsertMapper.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<!--
33
4-
Copyright 2009-2017 the original author or authors.
4+
Copyright 2009-2018 the original author or authors.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
@@ -19,8 +19,8 @@
1919
<!DOCTYPE mapper
2020
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
2121
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
22-
<mapper namespace="org.apache.ibatis.submitted.usesjava8.keycolumn.InsertMapper" >
23-
<insert id="insertNameMapped" parameterType="org.apache.ibatis.submitted.usesjava8.keycolumn.Name" useGeneratedKeys="true" keyProperty="id" keyColumn="name_id">
22+
<mapper namespace="org.apache.ibatis.submitted.keycolumn.InsertMapper" >
23+
<insert id="insertNameMapped" parameterType="org.apache.ibatis.submitted.keycolumn.Name" useGeneratedKeys="true" keyProperty="id" keyColumn="name_id">
2424
insert into mbtest.test_identity
2525
(first_name, last_name)
2626
values(#{firstName,jdbcType=VARCHAR}, #{lastName,jdbcType=VARCHAR})

src/test/java/org/apache/ibatis/submitted/usesjava8/keycolumn/InsertTest.java renamed to src/test/java/org/apache/ibatis/submitted/keycolumn/InsertTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.apache.ibatis.submitted.usesjava8.keycolumn;
16+
package org.apache.ibatis.submitted.keycolumn;
1717

1818
import static org.junit.Assert.assertEquals;
1919
import static org.junit.Assert.assertNotNull;
@@ -64,7 +64,7 @@ public static void setUp() throws Exception {
6464
sqlSessionFactory = new SqlSessionFactoryBuilder().build(configuration);
6565

6666
BaseDataTest.runScript(sqlSessionFactory.getConfiguration().getEnvironment().getDataSource(),
67-
"org/apache/ibatis/submitted/usesjava8/keycolumn/CreateDB.sql");
67+
"org/apache/ibatis/submitted/keycolumn/CreateDB.sql");
6868
}
6969

7070
@AfterClass

0 commit comments

Comments
 (0)