我已经编写了简单的应用程序来模拟String但是当我运行时,我收到了以下错误:
30 Mar, 2012 2:32:19 PM - NOTE : Start Processing Annotations
30 Mar, 2012 2:32:19 PM - NOTE : Processing [public void testObject() ]
30 Mar, 2012 2:32:19 PM - NOTE : Adding Class to Mocking List: java.lang.String
30 Mar, 2012 2:32:19 PM - NOTE : Found 1 classes to mock
30 Mar, 2012 2:32:19 PM - NOTE : Mocking class java.lang.String
30 Mar, 2012 2:32:19 PM - NOTE : Found 0 mocked classes to save
30 Mar, 2012 2:32:19 PM - NOTE : Finished Processing Mocks
30 Mar, 2012 2:32:19 PM - NOTE : Start Processing Annotations
30 Mar, 2012 2:32:19 PM - NOTE : Processing []
30 Mar, 2012 2:32:19 PM - NOTE : Found 0 classes to mock
30 Mar, 2012 2:32:19 PM - NOTE : Found 0 mocked classes to save
30 Mar, 2012 2:32:19 PM - NOTE : Finished Processing Mocks
30 Mar, 2012 2:34:51 PM - NOTE : Start Processing Annotations
30 Mar, 2012 2:34:51 PM - NOTE : Processing [public void testObject() ]
30 Mar, 2012 2:34:51 PM - NOTE : Adding Class to Mocking List: java.lang.String
30 Mar, 2012 2:34:51 PM - NOTE : Found 1 classes to mock
30 Mar, 2012 2:34:51 PM - NOTE : Mocking class java.lang.String
30 Mar, 2012 2:34:51 PM - NOTE : Found 0 mocked classes to save
30 Mar, 2012 2:34:51 PM - NOTE : Finished Processing Mocks
30 Mar, 2012 2:34:51 PM - NOTE : Start Processing Annotations
30 Mar, 2012 2:34:51 PM - NOTE : Processing []
30 Mar, 2012 2:34:51 PM - NOTE : Found 0 classes to mock
30 Mar, 2012 2:34:51 PM - NOTE : Found 0 mocked classes to save
30 Mar, 2012 2:34:51 PM - NOTE : Finished Processing Mocks
30 Mar, 2012 2:35:20 PM - NOTE : Start Processing Annotations
30 Mar, 2012 2:35:20 PM - NOTE : Processing [public void testObject() ]
30 Mar, 2012 2:35:20 PM - NOTE : Adding Class to Mocking List: java.lang.String
30 Mar, 2012 2:35:20 PM - NOTE : Found 1 classes to mock
30 Mar, 2012 2:35:20 PM - NOTE : Mocking class java.lang.String
30 Mar, 2012 2:35:20 PM - NOTE : Found 0 mocked classes to save
30 Mar, 2012 2:35:20 PM - NOTE : Finished Processing Mocks
30 Mar, 2012 2:35:20 PM - NOTE : Start Processing Annotations
30 Mar, 2012 2:35:20 PM - NOTE : Processing []
30 Mar, 2012 2:35:20 PM - NOTE : Found 0 classes to mock
30 Mar, 2012 2:35:20 PM - NOTE : Found 0 mocked classes to save
30 Mar, 2012 2:35:20 PM - NOTE : Finished Processing Mocks
答案 0 :(得分:1)
我知道我可能会迟到这个答案,但我会说它不能被嘲笑,因为String类是最终的。