01: package edu.umd.cs.findbugs.config;
02:
03: import junit.framework.Assert;
04: import junit.framework.TestCase;
05:
06: public class UserPreferencesTest extends TestCase {
07: UserPreferences prefs;
08:
09: @Override
10: protected void setUp() throws Exception {
11: prefs = UserPreferences.createDefaultUserPreferences();
12: }
13:
14: public void testClone() {
15: UserPreferences clone = (UserPreferences) prefs.clone();
16:
17: Assert.assertEquals(prefs, clone);
18: Assert.assertEquals(prefs.getClass(), clone.getClass());
19: }
20: }
|