File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/org/apache/ibatis/builder/annotation
test/java/org/apache/ibatis/submitted/cache Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ private void parseCacheRef() {
203
203
Class <?> refType = cacheDomainRef .value ();
204
204
String refName = cacheDomainRef .name ();
205
205
if (refType == void .class && refName .isEmpty ()) {
206
- throw new BuilderException ("Should be specified either value() and namespace () attribute in the @CacheNamespaceRef" );
206
+ throw new BuilderException ("Should be specified either value() or name () attribute in the @CacheNamespaceRef" );
207
207
}
208
208
if (refType != void .class && !refName .isEmpty ()) {
209
- throw new BuilderException ("Cannot use both value() and namespace () attribute in the @CacheNamespaceRef" );
209
+ throw new BuilderException ("Cannot use both value() and name () attribute in the @CacheNamespaceRef" );
210
210
}
211
211
String namespace = (refType != void .class ) ? refType .getName () : refName ;
212
212
assistant .useCacheRef (namespace );
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ public void shouldErrorUnsupportedProperties() {
358
358
@ Test
359
359
public void shouldErrorInvalidCacheNamespaceRefAttributesSpecifyBoth () {
360
360
expectedException .expect (BuilderException .class );
361
- expectedException .expectMessage ("Cannot use both value() and namespace () attribute in the @CacheNamespaceRef" );
361
+ expectedException .expectMessage ("Cannot use both value() and name () attribute in the @CacheNamespaceRef" );
362
362
363
363
sqlSessionFactory .getConfiguration ().getMapperRegistry ()
364
364
.addMapper (InvalidCacheNamespaceRefBothMapper .class );
@@ -367,7 +367,7 @@ public void shouldErrorInvalidCacheNamespaceRefAttributesSpecifyBoth() {
367
367
@ Test
368
368
public void shouldErrorInvalidCacheNamespaceRefAttributesIsEmpty () {
369
369
expectedException .expect (BuilderException .class );
370
- expectedException .expectMessage ("Should be specified either value() and namespace () attribute in the @CacheNamespaceRef" );
370
+ expectedException .expectMessage ("Should be specified either value() or name () attribute in the @CacheNamespaceRef" );
371
371
372
372
sqlSessionFactory .getConfiguration ().getMapperRegistry ()
373
373
.addMapper (InvalidCacheNamespaceRefEmptyMapper .class );
You can’t perform that action at this time.
0 commit comments