Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception on 404 within Transactions #271

Closed
wants to merge 2 commits into from
Closed

Unhandled exception on 404 within Transactions #271

wants to merge 2 commits into from

Conversation

kaimst
Copy link
Contributor

@kaimst kaimst commented Mar 24, 2014


@Test(expected=PathNotFoundException.class)
public void shouldThrowUnderlyingException() throws RepositoryException {
when(testObj.getNode(PATH)).thenThrow(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change:
when(testObj.getNode...
To:
when(mockSession.getNode...

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am under the impression that the wrapped session is "mockSession", and that the wrapping session is "testObj". No?
Therefore, in order to know how the proxy, "testObj" forwards the cause, we need the wrapped session to throw.

@awoods
Copy link

awoods commented Apr 3, 2014

Resolved with: 7702598

@awoods awoods closed this Apr 3, 2014
@kaimst kaimst deleted the fcrepo-67754686 branch April 5, 2014 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants