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

save method is not working #1

Open
mookkiah opened this issue Oct 13, 2018 · 1 comment
Open

save method is not working #1

mookkiah opened this issue Oct 13, 2018 · 1 comment

Comments

@mookkiah
Copy link

mookkiah commented Oct 13, 2018

When I adde below method in BookRepositoryTest, I got error.

@Test public void saveBook() { Book book = new Book("Clean Code"); repo.save(book); assertNotNull(book.getId()); }

Error:
Tests in error: saveBook(pl.patrykgala.ee.testing.jpa.repository.BookRepositoryTest): Failed calling Repository: [Repository=pl.patrykgala.ee.testing.jpa.repository.BookRepository,entity=pl.patrykgala.ee.testing.jpa.entity.Book,method=save,exception=class javax.naming.NoInitialContextException,message=Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

@mvera
Copy link

mvera commented Jan 9, 2021

Hi,

I face the same problem.

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

No branches or pull requests

2 participants