This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
void testRefreshAfterSourceTableDroppedAndRecreated() | |
{ | |
String sourceTableName = "source_table" + randomNameSuffix(); | |
String materializedViewName = "test_materialized_view" + randomNameSuffix(); | |
// Create the source table and materialized view | |
assertUpdate("CREATE TABLE " + sourceTableName + " (a int, b varchar)"); | |
assertUpdate("INSERT INTO " + sourceTableName + " VALUES (1, 'abc'), (2, 'def')", 2); | |
assertUpdate("CREATE MATERIALIZED VIEW " + materializedViewName + " AS SELECT a, b FROM " + sourceTableName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pl.weblang.gui | |
import org.omegat.gui.main.DockableScrollPane | |
import org.omegat.gui.main.IMainWindow | |
import org.omegat.util.gui.IPaneMenu | |
import org.omegat.util.gui.StaticUIUtils | |
import java.awt.Dimension | |
import javax.swing.JPopupMenu | |
import javax.swing.JTextPane |