|
@@ -77,20 +77,20 @@ public class IdentitiesProfileMigratorTest {
|
77
|
77
|
}
|
78
|
78
|
|
79
|
79
|
@Test
|
80
|
|
- public void testNeedsMigration_NoProfiles() throws Exception {
|
|
80
|
+ public void testNeedsMigration_NoProfiles() {
|
81
|
81
|
when(identityManager.getProvidersByType("profile")).thenReturn(Lists.newArrayList());
|
82
|
82
|
assertFalse(instance.needsMigration());
|
83
|
83
|
}
|
84
|
84
|
|
85
|
85
|
@Test
|
86
|
|
- public void testNeedsMigration_Profiles() throws Exception {
|
|
86
|
+ public void testNeedsMigration_Profiles() {
|
87
|
87
|
when(identityManager.getProvidersByType("profile")).thenReturn(
|
88
|
88
|
Lists.newArrayList(configProvider1));
|
89
|
89
|
assertTrue(instance.needsMigration());
|
90
|
90
|
}
|
91
|
91
|
|
92
|
92
|
@Test
|
93
|
|
- public void testMigrate_NoIdent() throws Exception {
|
|
93
|
+ public void testMigrate_NoIdent() {
|
94
|
94
|
when(identityManager.getProvidersByType("profile")).thenReturn(
|
95
|
95
|
Lists.newArrayList(configProvider1));
|
96
|
96
|
instance.migrate();
|
|
@@ -99,7 +99,7 @@ public class IdentitiesProfileMigratorTest {
|
99
|
99
|
}
|
100
|
100
|
|
101
|
101
|
@Test
|
102
|
|
- public void testMigrate_Ident() throws Exception {
|
|
102
|
+ public void testMigrate_Ident() {
|
103
|
103
|
when(identityManager.getProvidersByType("profile")).thenReturn(
|
104
|
104
|
Lists.newArrayList(configProvider2));
|
105
|
105
|
instance.migrate();
|
|
@@ -108,7 +108,7 @@ public class IdentitiesProfileMigratorTest {
|
108
|
108
|
}
|
109
|
109
|
|
110
|
110
|
@Test
|
111
|
|
- public void testMigrate_MultipleNicknames() throws Exception {
|
|
111
|
+ public void testMigrate_MultipleNicknames() {
|
112
|
112
|
when(identityManager.getProvidersByType("profile")).thenReturn(
|
113
|
113
|
Lists.newArrayList(configProvider3));
|
114
|
114
|
instance.migrate();
|