当存在EBean增强模型的依赖性时,如何在Eclipse中运行JUNIT? [英] How can I run JUNITs in Eclipse when there is a dependency of EBean enhancing models?

查看:245
本文介绍了当存在EBean增强模型的依赖性时,如何在Eclipse中运行JUNIT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在一个项目中使用Java使用playframework执行Junits,我能够通过调用 sbt test 来运行测试,但是我想在Eclipse IDE中运行junits,但由于未增强模型而一直显示错误。

I'm trying to execute junits in a project where the stack is playframework with java, I'm able to run the test by calling sbt test but I would like run the junits in eclipse IDE but keeps showing errors because the models are NOT enhanced.

我看到有一个eclipse插件,但对我不起作用。你们知道要完成在Eclipse中运行这些junit吗?

I saw that there is a plugin for eclipse, but it didn't work for me. Do you guys know to do accomplish running that junits in eclipse?

由于我不是一个使用playframework的傻瓜。

As a not I'm a noobie using playframework.

预先感谢。

推荐答案

经过更多研究,我发现有两个eclipse插件可以启用EBean。

After doing more research, I found that there are two eclipse plugins to enable the EBean enhancer and I was using the wrong one.

此链接确实可以帮助我了解我在项目中使用的EBean版本 https://github.com/playframework/play-ebean

This link really help me to understand which version of EBean I was using in my project https://github.com/playframework/play-ebean

如果您正在使用从4.x到7.x的EBean版本,请安装以下插件 http://ebean-orm.github.io/eclipse/update-4.11.2

If you are using EBean version from 4.x to 7.x, install the following plugin http://ebean-orm.github.io/eclipse/update-4.11.2

如果您使用的是EBean版本10.3.x,请安装 http://ebean-orm.github.io/eclipse/update

If you are using EBean version 10.3.x, then install http://ebean-orm.github.io/eclipse/update

希望这对将来的人有所帮助...

Hope this helps to someone in the future...

这篇关于当存在EBean增强模型的依赖性时,如何在Eclipse中运行JUNIT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆