From 9ba69baff18dd24b207e0a8b6ad76133fe4ea536 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Fri, 20 Sep 2013 11:41:36 -0400 Subject: Unit test for InformationDesc Also remove the references to JNLPFile from InformationDesc. This makes it much easier to instantiate InformationDesc for tests. --- netx/net/sourceforge/jnlp/InformationDesc.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'netx/net/sourceforge/jnlp/InformationDesc.java') diff --git a/netx/net/sourceforge/jnlp/InformationDesc.java b/netx/net/sourceforge/jnlp/InformationDesc.java index f83329a..4d38d85 100644 --- a/netx/net/sourceforge/jnlp/InformationDesc.java +++ b/netx/net/sourceforge/jnlp/InformationDesc.java @@ -52,17 +52,13 @@ public class InformationDesc { /** the data as list of key,value pairs */ private List info; - /** the JNLPFile this information is for */ - private JNLPFile jnlpFile; /** * Create an information element object. * - * @param jnlpFile file that the information is for * @param locales the locales the information is for */ - public InformationDesc(JNLPFile jnlpFile, Locale locales[]) { - this.jnlpFile = jnlpFile; + public InformationDesc(Locale locales[]) { this.locales = locales; } @@ -171,6 +167,8 @@ public class InformationDesc { } } + // FIXME if there's no larger icon, choose the closest smaller icon + // instead of the first if (best == null) best = icons[0]; @@ -184,13 +182,6 @@ public class InformationDesc { return locales; } - /** - * Returns the JNLPFile the information is for. - */ - public JNLPFile getJNLPFile() { - return jnlpFile; - } - /** * Returns whether offline execution allowed. */ -- cgit v1.2.3