Skip to content

Commit 67771db

Browse files
committed
Merge branch 'master' into pr/2121
2 parents d761d12 + 7d8f899 commit 67771db

File tree

11 files changed

+51
-113
lines changed

11 files changed

+51
-113
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
name: Java CI
1818

19-
on: [push]
19+
on: [push, pull_request]
2020

2121
jobs:
2222
test:

.github/workflows/coveralls.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# Copyright 2016-2020 the original author or authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
name: Coveralls
18+
19+
on: [push, pull_request]
20+
21+
jobs:
22+
build:
23+
if: github.repository_owner == 'mybatis'
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up JDK
28+
uses: actions/setup-java@v1
29+
with:
30+
java-version: 8
31+
- name: Report Coverage to Coveralls for Pull Requests
32+
if: github.event_name == 'pull_request'
33+
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
PR_NUMBER: ${{ github.event.number }}
37+
- name: Report Coverage to Coveralls for General Push
38+
if: github.event_name == 'push'
39+
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
java-version: 11
3737
- name: Analyze with SonarCloud
38-
run: ./mvnw verify sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-3 -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dlicense.skip=true
38+
run: ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-3 -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dlicense.skip=true
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<dependency>
146146
<groupId>ognl</groupId>
147147
<artifactId>ognl</artifactId>
148-
<version>3.2.16</version>
148+
<version>3.2.18</version>
149149
<scope>compile</scope>
150150
<optional>true</optional>
151151
</dependency>
@@ -264,19 +264,19 @@
264264
<dependency>
265265
<groupId>org.testcontainers</groupId>
266266
<artifactId>junit-jupiter</artifactId>
267-
<version>1.14.3</version>
267+
<version>1.15.1</version>
268268
<scope>test</scope>
269269
</dependency>
270270
<dependency>
271271
<groupId>org.testcontainers</groupId>
272272
<artifactId>postgresql</artifactId>
273-
<version>1.14.3</version>
273+
<version>1.15.1</version>
274274
<scope>test</scope>
275275
</dependency>
276276
<dependency>
277277
<groupId>org.testcontainers</groupId>
278278
<artifactId>mysql</artifactId>
279-
<version>1.14.3</version>
279+
<version>1.15.1</version>
280280
<scope>test</scope>
281281
</dependency>
282282
<!-- For javadoc link -->

src/main/java/org/apache/ibatis/cache/decorators/BlockingCache.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.apache.ibatis.cache.decorators;
1717

18-
import java.text.MessageFormat;
1918
import java.util.concurrent.ConcurrentHashMap;
2019
import java.util.concurrent.CountDownLatch;
2120
import java.util.concurrent.TimeUnit;

src/main/java/org/apache/ibatis/cache/decorators/TransactionalCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private void unlockMissedEntries() {
127127
try {
128128
delegate.removeObject(entry);
129129
} catch (Exception e) {
130-
log.warn("Unexpected exception while notifiying a rollback to the cache adapter. "
130+
log.warn("Unexpected exception while notifying a rollback to the cache adapter. "
131131
+ "Consider upgrading your cache adapter to the latest version. Cause: " + e);
132132
}
133133
}

src/main/java/org/apache/ibatis/session/Configuration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,9 @@ public LanguageDriver getLanguageDriver(Class<? extends LanguageDriver> langClas
627627
}
628628

629629
/**
630-
* Gets the default scripting lanuage instance.
630+
* Gets the default scripting language instance.
631631
*
632-
* @return the default scripting lanuage instance
632+
* @return the default scripting language instance
633633
* @deprecated Use {@link #getDefaultScriptingLanguageInstance()}
634634
*/
635635
@Deprecated

src/site/ko/xdoc/getting-started.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public interface BlogMapper {
203203
</p>
204204
<hr/>
205205
<h4>SqlSessionFactoryBuilder</h4>
206-
<p>이 클래스는 인스턴스회되어 사용되고 던져질 수 있다.
206+
<p>이 클래스는 인스턴스화되어 사용되고 던져질 수 있다.
207207
SqlSessionFactory 를 생성한 후 유지할 필요는 없다.
208208
그러므로 SqlSessionFactoryBuilder 인스턴스의 가장 좋은 스코프는 메소드 스코프(예를들면 메소드 지역변수)이다.
209209
여러개의 SqlSessionFactory 인스턴스를 빌드하기 위해 SqlSessionFactoryBuilder를 재사용할 수도 있지만 유지하지 않는 것이 가장 좋다.</p>

src/test/java/org/apache/ibatis/reflection/MetaObjectTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,6 @@ void shouldGetAndSetListItem() {
104104
assertEquals("foo", meta.getValue("richList[0]"));
105105
}
106106

107-
@Test
108-
void shouldSetAndGetSelfListItem() {
109-
RichType rich = new RichType();
110-
MetaObject meta = SystemMetaObject.forObject(rich);
111-
meta.setValue("richList[0]", "foo");
112-
assertEquals("foo", meta.getValue("richList[0]"));
113-
}
114-
115107
@Test
116108
void shouldGetAndSetNestedListItem() {
117109
RichType rich = new RichType();

0 commit comments

Comments
 (0)