Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan E. Cook2016-08-12 17:24:33 -0400
committerRyan Brooks2016-09-12 11:28:43 -0400
commit253868a3571e19665795215c1ebafc151740cdfd (patch)
tree026674210a4f17c8e41365f956b4af183ca3c034 /plugins/org.eclipse.osee.orcs.db.test
parent286a601fd271e225ff6f5c4d1ea0f91e7464405a (diff)
downloadorg.eclipse.osee-253868a3571e19665795215c1ebafc151740cdfd.tar.gz
org.eclipse.osee-253868a3571e19665795215c1ebafc151740cdfd.tar.xz
org.eclipse.osee-253868a3571e19665795215c1ebafc151740cdfd.zip
refactor: Remove guid replace for attribute loading on server
Change-Id: Ic69089c6b4dea8d3791f6eda8ce2438994fd7888 Signed-off-by: Morgan E. Cook <Morgan.e.cook@boeing.com>
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.db.test')
-rw-r--r--plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/loader/AttributeDataProxyFactoryTest.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/loader/AttributeDataProxyFactoryTest.java b/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/loader/AttributeDataProxyFactoryTest.java
index 306594a298..acaa4a1c5a 100644
--- a/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/loader/AttributeDataProxyFactoryTest.java
+++ b/plugins/org.eclipse.osee.orcs.db.test/src/org/eclipse/osee/orcs/db/internal/loader/AttributeDataProxyFactoryTest.java
@@ -162,39 +162,4 @@ public class AttributeDataProxyFactoryTest {
Assert.assertEquals(proxy, theProxy);
Mockito.verify(proxy).setData(null, null);
}
-
- @Test
- public void testCreateFromStringsCheckIntern() throws OseeCoreException {
- long typeUuid = 45L;
- String value = "hello";
- String uri = null;
-
- Mockito.when(attributeTypeCache.getByUuid(45L)).thenReturn(attributeType);
- Mockito.when(attributeTypeCache.getAttributeProviderId(attributeType)).thenReturn("org.eclipse.proxyfactory");
- Mockito.when(proxyProvider.getFactory("proxyfactory")).thenReturn(dataProxyFactory);
- Mockito.when(dataProxyFactory.createInstance("proxyfactory")).thenReturn(proxy);
-
- AttributeDataProxyFactory spy = Mockito.spy(factory);
-
- spy.createProxy(typeUuid, value, uri);
- Mockito.verify(spy, Mockito.times(0)).intern(value);
-
- Mockito.reset(spy);
-
- Mockito.when(attributeTypeCache.isEnumerated(attributeType)).thenReturn(true);
- spy.createProxy(typeUuid, value, uri);
- Mockito.verify(spy).intern(value);
-
- Mockito.reset(spy);
-
- Mockito.when(attributeTypeCache.isEnumerated(attributeType)).thenReturn(false);
- spy.createProxy(typeUuid, value, uri);
- Mockito.verify(spy, Mockito.times(0)).intern(value);
-
- Mockito.reset(spy);
-
- Mockito.when(attributeTypeCache.isBooleanType(attributeType)).thenReturn(true);
- spy.createProxy(typeUuid, value, uri);
- Mockito.verify(spy).intern(value);
- }
}

Back to the top