
比如 @Test(name="haha"),如何在程序运行中修改 haha 为别的值?
1 qinxi 2016-05-26 09:47:47 +08:00 从反射中来,到反射中去..瞎猜 |
2 twoyuan 2016-05-26 11:44:13 +08:00 |
3 twoyuan 2016-05-26 11:52:45 +08:00 貌似真实代码和答案里有些出入, annotations 这个 map 现在在 class 中 annotationData 里了,改过的代码贴一下: https://gist.github.com/twiceyuan/b8b4d952d6fd641e98f68f1e9d327988 |
4 crytis OP |