Frame { public LuaValue getAllArguments() { LuaTable table = new LuaTable(); for (Map.Entry<String, String> entry: templateParameters.entrySet()) { try { final int numberedParam = Integer.parseInt(entry.getKey()); table.set(LuaValue.valueOf(numberedParam), LuaValue.valueOf(entry.getValue())); } catch (NumberFormatException e) { table.set(LuaValue.valueOf(entry.getKey()), LuaValue.valueOf(entry.getValue())); } } return table; } Frame(ParsedPageName page, Map<String, String> templateParameters, Frame parent, boolean isSubst); Frame newChild(ParsedPageName pageName, Map<String, String> templateParameters, boolean isSubst); LuaValue getArgument(String name); Map<String, String> getTemplateParameters(); LuaValue getAllArguments(); Frame getParent(); String getTitle(); boolean isSubsting();  }
@Test public void testGetAllArguments() { LuaValue arguments = subject.getAllArguments(); assertThat(arguments.length()).isEqualTo(1); assertThat(arguments.get("a").toString()).isEqualTo("a value"); assertThat(arguments.get("b").toString()).isEqualTo("b value"); assertThat(arguments.get(LuaValue.valueOf(1)).toString()).isEqualTo("numbered param"); }