Commit 183b2eeb authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Added get to getandsetproperties test

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8643 b35dd754-fafc-0310-a699-88a17e54d16e
parent 05ed8916
...@@ -336,6 +336,37 @@ ...@@ -336,6 +336,37 @@
<option name="Make" value="true" /> <option name="Make" value="true" />
</method> </method>
</configuration> </configuration>
<configuration default="false" name="Plugin Unit Tests" type="JUnit" factoryName="JUnit" enabled="true" merge="true">
<pattern value="org.jivesoftware.openfire.plugin.*" />
<module name="Plugins" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="PACKAGE_NAME" value="org.jivesoftware.openfire.plugin" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="package" />
<option name="VM_PARAMETERS" value="" />
<option name="PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ADDITIONAL_CLASS_PATH" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="singleModule" />
</option>
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="1578" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="JProfiler">
<option name="WINDOW" value="false" />
<option name="JVMPI" value="false" />
<option name="INTERPRETED" value="false" />
</RunnerSettings>
<ConfigurationWrapper RunnerId="Debug" />
<method>
<option name="Make" value="true" />
</method>
</configuration>
</component> </component>
<component name="RmicSettings"> <component name="RmicSettings">
<option name="IS_EANABLED" value="false" /> <option name="IS_EANABLED" value="false" />
......
...@@ -83,8 +83,13 @@ public class BroadcastPluginTest { ...@@ -83,8 +83,13 @@ public class BroadcastPluginTest {
context.checking(new Expectations() {{ context.checking(new Expectations() {{
allowing(jiveProperties).put("plugin.broadcast.serviceName", "broadcast"); allowing(jiveProperties).put("plugin.broadcast.serviceName", "broadcast");
allowing(jiveProperties)
.getProperty("plugin.broadcast.serviceName", "broadcast");
will(returnValue("broadcast"));
}}); }});
broadcastPlugin.setServiceName("broadcast"); broadcastPlugin.setServiceName("broadcast");
assertEquals(broadcastPlugin.getServiceName(), "broadcast");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment