@@ -30,7 +30,6 @@ import org.junit.jupiter.api.Test
30
30
import org.junit.jupiter.api.TestInstance
31
31
import org.mybatis.dynamic.sql.util.Messages
32
32
import org.mybatis.dynamic.sql.util.kotlin.KInvalidSQLException
33
- import org.mybatis.dynamic.sql.util.kotlin.elements.equalTo
34
33
import org.mybatis.dynamic.sql.util.kotlin.elements.invoke
35
34
import org.mybatis.dynamic.sql.util.kotlin.elements.max
36
35
import org.mybatis.dynamic.sql.util.kotlin.mybatis3.select
@@ -127,27 +126,6 @@ class JoinMapperTest {
127
126
assertThat(selectStatement.selectStatement).isEqualTo(expectedStatement)
128
127
}
129
128
130
- @Test
131
- fun testDeprecatedJoin () {
132
- // this is a nonsensical join, but it does test the "and" capability
133
- val selectStatement = select(
134
- orderMaster.orderId, orderMaster.orderDate, orderDetail.lineNumber,
135
- orderDetail.description, orderDetail.quantity
136
- ) {
137
- from(orderMaster, " om" )
138
- join(orderDetail, " od" ) {
139
- on(orderMaster.orderId, equalTo(orderDetail.orderId))
140
- and (orderMaster.orderId, equalTo(orderDetail.orderId))
141
- }
142
- where { orderMaster.orderId isEqualTo 1 }
143
- }
144
-
145
- val expectedStatement = " select om.order_id, om.order_date, od.line_number, od.description, od.quantity" +
146
- " from OrderMaster om join OrderDetail od on om.order_id = od.order_id and om.order_id = od.order_id" +
147
- " where om.order_id = #{parameters.p1,jdbcType=INTEGER}"
148
- assertThat(selectStatement.selectStatement).isEqualTo(expectedStatement)
149
- }
150
-
151
129
@Test
152
130
fun testMultipleTableJoinWithWhereClause () {
153
131
sqlSessionFactory.openSession().use { session ->
0 commit comments