Redesigned SQL interface.

This commit is contained in:
Winston Li
2015-02-21 17:43:24 +00:00
parent 4d98159398
commit 4110dcc2a9
33 changed files with 215 additions and 648 deletions

View File

@@ -0,0 +1,14 @@
package uk.ac.ic.wlgitbridge.writelatex.model.db.sql.update.delete;
import org.junit.Test;
import static org.junit.Assert.*;
public class DeleteFilesForProjectSQLUpdateTest {
@Test
public void testGetSQL() {
DeleteFilesForProjectSQLUpdate update = new DeleteFilesForProjectSQLUpdate("projname", "path1", "path2");
assertEquals("DELETE FROM `url_index_store` WHERE `project_name` = ? AND path IN ('path1', 'path2');\n", update.getSQL());
}
}