private TrialEqualsByProperties() { createLoaderForThread(true); sbI1 = (SdzBagI) Utils.loadXMLFromResource(filename1, this, false); sbI2 = (SdzBagI) Utils.loadXMLFromResource(filename2, this, false); Err.pr("sbI1: " + sbI1); Err.pr("sbI2: " + sbI2); JComponent[] panels1 = sbI1.getPanes(); JComponent[] panels2 = sbI2.getPanes(); if (panels1.length != panels2.length) { Err.error("Expected the size of the panels to be the same"); } WidgetClassifier wc = new WidgetClassifier(); ReasonNotEquals.turnOn(true); for (int i = 0; i < panels1.length; i++) { JComponent component1 = panels1[i]; JComponent component2 = panels2[i]; if (ComponentUtils.equalsByProperties(component1, component2, wc)) { Err.pr("Found to be equal"); } else { Err.pr("Found to be NOT equal: " + ReasonNotEquals.formatReasons()); break; } } ReasonNotEquals.turnOn(false); }
public ListExpensesTriggers(DataStore dataStore, ListExpensesDT dt, SdzBagI controller) { this.dataStore = dataStore; this.dt = dt; dt.expenseNode.addDataFlowTrigger(new DataFlowT0()); controller.getStrand().addTransactionTrigger(new FormTransactionT()); controller.getStrand().setErrorHandler(new HandlerT()); controller.getStrand().setEntityManagerTrigger(new EntityManagerT()); new AlterSdzSetup(controller).performAlterSdzSetup(); }