Skip to content

Instantly share code, notes, and snippets.

@SemionPar
SemionPar / gist:61a2224da03360ac025655f84e557229
Created May 12, 2025 11:23
testRefreshAfterSourceTableDroppedAndRecreated
@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);
@SemionPar
SemionPar / Pane.kt
Created February 5, 2017 19:19
MWE - dockable init issue
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