SqlRequests { @SuppressWarnings("unchecked") @NonNull public static DBTable<DBColumn<DBColumnConflictCompile<SqlInsertRequest, ?>>> sqlInsertRequest() { return new SqlRequestCompiler(SQL_INSERT_REQUEST); } private  SqlRequests(); @SuppressWarnings("unchecked") @NonNull static DBSql<DBArgumentCompile<
      SqlRequest, DBArgumentCompile<SqlRequest, DBCompile<SqlRequest>>>> sqlRequest(); @SuppressWarnings("unchecked") @NonNull static DBTable<DBWhereCompile<SqlDeleteRequest, DBArgumentCompile<
      SqlDeleteRequest, DBCompile<SqlDeleteRequest>>>> sqlDeleteRequest(); @SuppressWarnings("unchecked") @NonNull static DBTable<DBColumn<DBColumnConflictCompile<SqlInsertRequest, ?>>> sqlInsertRequest(); @SuppressWarnings("unchecked") @NonNull static DBTable<DBColumn<DBColumnWhereConflictCompile<SqlUpdateRequest,
      DBArgumentConflictCompile<SqlUpdateRequest, DBConflictCompile<SqlUpdateRequest>>, ?>>> sqlUpdateRequest();  }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfCompile() { final DBColumnConflictCompile<SqlInsertRequest, ?> incompleteRequest = sqlInsertRequest() .table(TABLE_2) .column("column", "value"); incompleteRequest.compile(); incompleteRequest.compile(); }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfFailOnConflict() { final DBColumnConflictCompile<SqlInsertRequest, ?> incompleteRequest = sqlInsertRequest() .table(TABLE_2) .column("column", "value"); incompleteRequest.failOnConflict().compile(); incompleteRequest.failOnConflict(); }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfIgnoreOnConflict() { final DBColumnConflictCompile<SqlInsertRequest, ?> incompleteRequest = sqlInsertRequest() .table(TABLE_2) .column("column", "value"); incompleteRequest.ignoreOnConflict().compile(); incompleteRequest.ignoreOnConflict(); }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfReplaceOnConflict() { final DBColumnConflictCompile<SqlInsertRequest, ?> incompleteRequest = sqlInsertRequest() .table(TABLE_2) .column("column", "value"); incompleteRequest.replaceOnConflict().compile(); incompleteRequest.replaceOnConflict(); }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfColumn() { final DBColumn<DBColumnConflictCompile<SqlInsertRequest, ?>> incompleteRequest = sqlInsertRequest() .table(TABLE_2); incompleteRequest.column("column", "value").compile(); incompleteRequest.column("column", "value"); }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfEmptyColumn() { final DBColumn<DBColumnConflictCompile<SqlInsertRequest, ?>> incompleteRequest = sqlInsertRequest() .table(TABLE_2); incompleteRequest.emptyColumn("column").compile(); incompleteRequest.emptyColumn("column"); }
@Test(expected = IllegalStateException.class) public void shouldThrowExceptionForReuseOfCompilerOfTable() { final DBTable<DBColumn<DBColumnConflictCompile<SqlInsertRequest, ?>>> incompleteRequest = sqlInsertRequest(); incompleteRequest.table(TABLE).column("column", "value").compile(); incompleteRequest.table(TABLE); }