mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
#754743 : throw IllegalStateException on multiple usage of sources
This commit is contained in:
parent
b128c18634
commit
58f6bef577
@ -0,0 +1,15 @@
|
||||
package com.mysema.query.sql;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.sql.domain.QSurvey;
|
||||
|
||||
public class JoinUsageTest {
|
||||
|
||||
@Test(expected=IllegalStateException.class)
|
||||
public void Join_Already_Declared(){
|
||||
SQLSubQuery subQuery = new SQLSubQuery();
|
||||
subQuery.from(QSurvey.survey).fullJoin(QSurvey.survey);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user