From 5c796f726aa87b2ce057852bfb9e8d9195c68c73 Mon Sep 17 00:00:00 2001 From: kiramt Date: Thu, 8 Jun 2017 15:01:02 +0100 Subject: [PATCH] JAL-2586 Clarification to URL link code --- src/jalview/urls/UrlLinkDisplay.java | 2 +- test/jalview/urls/UrlLinkDisplayTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/urls/UrlLinkDisplay.java b/src/jalview/urls/UrlLinkDisplay.java index 5b376a2..09566c3 100644 --- a/src/jalview/urls/UrlLinkDisplay.java +++ b/src/jalview/urls/UrlLinkDisplay.java @@ -177,7 +177,7 @@ public class UrlLinkDisplay break; case NAME: setDescription((String) value); - break; + // deliberate fall through case DATABASE: setDBName((String) value); break; diff --git a/test/jalview/urls/UrlLinkDisplayTest.java b/test/jalview/urls/UrlLinkDisplayTest.java index ff7d957..9eeac9f 100644 --- a/test/jalview/urls/UrlLinkDisplayTest.java +++ b/test/jalview/urls/UrlLinkDisplayTest.java @@ -131,7 +131,7 @@ public class UrlLinkDisplayTest { u.setValue(UrlLinkDisplay.NAME, "New Desc"); Assert.assertEquals(u.getValue(UrlLinkDisplay.NAME), "New Desc"); - Assert.assertEquals(u.getValue(UrlLinkDisplay.DATABASE), "TestDB"); + Assert.assertEquals(u.getValue(UrlLinkDisplay.DATABASE), "New Desc"); u.setValue(UrlLinkDisplay.DATABASE, "NewName"); Assert.assertEquals(u.getValue(UrlLinkDisplay.DATABASE), "NewName"); -- 1.7.10.2