JUnit:java.lang.IllegalStateException while executin event.queue(),其中事件为ValueChangeEvent实例

JUnit:java.lang.IllegalStateException while executin event.queue(),其中事件为ValueChangeEvent实例,java,documentum,Java,Documentum,创建以valuechangevent对象作为输入的方法的Junit时,它在调用队列方法时抛出IllegalStateException 我搜索了一些东西,得出结论,这是因为 java.lang.IllegalStateException-如果此事件的源组件不是UIViewRoot的后代 如何使valueChangeEvent组件成为UIViewRoot的后代?您可以添加代码吗?您可以添加代码吗?

创建以
valuechangevent
对象作为输入的方法的Junit时,它在调用队列方法时抛出
IllegalStateException

我搜索了一些东西,得出结论,这是因为
java.lang.IllegalStateException
-如果此事件的源组件不是
UIViewRoot的后代


如何使
valueChangeEvent
组件成为
UIViewRoot
的后代?

您可以添加代码吗?您可以添加代码吗?