File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
src/test/java/org/javawebstack/orm/test Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 66import org .javawebstack .orm .Repo ;
77import org .javawebstack .orm .exception .ORMConfigurationException ;
88import org .javawebstack .orm .test .ORMTestCase ;
9- import org .javawebstack .orm .test .shared .models .tablenames .ThreeWordClass ;
10- import org .javawebstack .orm .test .shared .models .tablenames .TwoWord ;
11- import org .javawebstack .orm .test .shared .models .tablenames .Word ;
12- import org .javawebstack .orm .test .shared .models .tablenames .Words ;
9+ import org .javawebstack .orm .test .shared .models .tablenames .*;
1310import org .junit .jupiter .api .Test ;
1411
1512import static org .junit .jupiter .api .Assertions .assertFalse ;
@@ -39,6 +36,12 @@ void testThreeWordBecomeSnakeCases() throws ORMConfigurationException {
3936 assertTrue (query .contains ("FROM `three_word_classes`" ));
4037 }
4138
39+ @ Test
40+ void testIrregularWordPlural () throws ORMConfigurationException {
41+ String query = getBaseQuery (Mouse .class );
42+ assertTrue (query .contains ("FROM `mice`" ));
43+ }
44+
4245 /*
4346 * Error / Not Closer Specified Cases
4447 */
Original file line number Diff line number Diff line change 1+ package org .javawebstack .orm .test .shared .models .tablenames ;
2+
3+ import org .javawebstack .orm .Model ;
4+ import org .javawebstack .orm .annotation .Column ;
5+
6+ /**
7+ * This class' name has an irregular plural (mice) and is here for this purpose.
8+ */
9+ public class Mouse extends Model {
10+ @ Column
11+ int id ;
12+ }
You can’t perform that action at this time.
0 commit comments