Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1130 and re-enable GUI test #1135

Merged
merged 2 commits into from
Apr 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/integrationTest/java/net/sf/jabref/gui/GUITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
import static org.assertj.swing.launcher.ApplicationLauncher.application;

public class GUITest extends AssertJSwingJUnitTestCase {

private AWTExceptionHandler awtExceptionHandler;


@Override
protected void onSetUp() {
awtExceptionHandler = new AWTExceptionHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ private void buildGUI() {
gbl.setConstraints(btnDefault, con);
pan.add(btnDefault);

for (EntryType type : EntryTypes.getAllValues(panel.getBibDatabaseContext().getMode())) {
textFields.put(type.getName().toLowerCase(), addEntryType(pan, type, y));
y++;
// check if DB is open
if(panel != null) {
for (EntryType type : EntryTypes.getAllValues(panel.getBibDatabaseContext().getMode())) {
textFields.put(type.getName().toLowerCase(), addEntryType(pan, type, y));
y++;
}
}

con.fill = GridBagConstraints.BOTH;
Expand Down