mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - add tests for naming convention on m2m columns
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.avaje.ebean.config;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.StrictAssertions.assertThat;
|
||||
|
||||
public class MatchingNamingConventionTest {
|
||||
|
||||
private MatchingNamingConvention namingConvention = new MatchingNamingConvention();
|
||||
|
||||
@Test
|
||||
public void getColumnFromProperty() throws Exception {
|
||||
|
||||
String fkCol = "bridgetab_userId";
|
||||
String col = namingConvention.getColumnFromProperty(null, fkCol);
|
||||
assertThat(col).isEqualTo(fkCol);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.avaje.ebean.config;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class UnderscoreNamingConventionTest {
|
||||
|
||||
private UnderscoreNamingConvention namingConvention = new UnderscoreNamingConvention();
|
||||
|
||||
@Test
|
||||
public void getColumnFromProperty() throws Exception {
|
||||
|
||||
String fkCol = "bridgetab_user_id";
|
||||
|
||||
String col = namingConvention.getColumnFromProperty(null, fkCol);
|
||||
assertThat(col).isEqualTo(fkCol);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user