#754743 : throw IllegalStateException on multiple usage of sources

This commit is contained in:
Timo Westkämper 2011-04-08 19:41:31 +00:00
parent b128c18634
commit 58f6bef577

View File

@ -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);
}
}