Merge remote-tracking branch 'origin/GT-0_EquateTableTestFixes'

This commit is contained in:
ghidorahrex 2020-02-24 08:46:13 -05:00
commit 9c1fc2514b

View file

@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -43,6 +43,11 @@ class EquateTableModel extends GDynamicColumnTableModel<Equate, Object> {
private EquateTablePlugin plugin; private EquateTablePlugin plugin;
private List<Equate> equateList = new ArrayList<>(); private List<Equate> equateList = new ArrayList<>();
// For testing
static final int NAME_COL = 0;
static final int VALUE_COL = 1;
static final int REFS_COL = 2;
EquateTableModel(EquateTablePlugin plugin) { EquateTableModel(EquateTablePlugin plugin) {
super(plugin.getTool()); super(plugin.getTool());
this.plugin = plugin; this.plugin = plugin;