List of usage examples for org.eclipse.jdt.internal.core JarPackageFragmentRoot isExternal
@Override public boolean isExternal()
From source file:org.eclipse.recommenders.internal.coordinates.rcp.EclipseDependencyListenerTest.java
License:Open Source License
private JarPackageFragmentRoot mockJarPackageFragmentRoot(final IJavaProject javaProject, final File file) { JarPackageFragmentRoot mock = mock(JarPackageFragmentRoot.class, RETURNS_DEEP_STUBS); when(mock.getParent()).thenReturn(javaProject); when(mock.getPath().toFile()).thenReturn(file); when(mock.getAncestor(JAVA_PROJECT)).thenReturn(javaProject); when(mock.isExternal()).thenReturn(true); return mock;/*from w w w. j a v a 2 s . c o m*/ }