小编Moh*_*ami的帖子

FacesServlet无法在Web片段中工作

我有两个Web应用程序(web-module1.war和web-module2.war),我想使用Web片段(web-core.jar)进行常见的servlet声明,如FacesServlet.

当我在web.xml中声明FacesServlet没问题,但是当我将此声明移动到web-fragment.xml时,我收到此错误:

java.lang.IllegalStateException: No Factories configured for this Application. 
This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which …
Run Code Online (Sandbox Code Playgroud)

myfaces jsf-2 facesservlet web-fragment

2
推荐指数
1
解决办法
700
查看次数

PhpUnit内联DataProvider

所以问题是:有没有办法直接在注释中指定测试参数?像这样的东西:

 /**
 * @dataProvider [[0, 0, 0], [0, 1, 1], [1, 0, 1]]
 */
public function testAdd($a, $b, $expected)
{
    $this->assertEquals($expected, $a + $b);
}
Run Code Online (Sandbox Code Playgroud)

因为如果DataProvider仅使用简单数据集一次就很有用.

php phpunit

2
推荐指数
1
解决办法
347
查看次数

标签 统计

facesservlet ×1

jsf-2 ×1

myfaces ×1

php ×1

phpunit ×1

web-fragment ×1