Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseSupport_ko




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseEclipse_ko


Difference between current version and version 4:

At line 60 changed 1 line.
Eclipse에서 JUnit테스트를 실행하는 것도 가능하다. 하지만 수행하기 전에, 당신은 "war" target를 수행할 필요가 있다. 이 target가 수행된후, 당신의 프로젝트를 refresh하라.
Eclipse에서 JUnit테스트를 실행하는 것도 가능하다. 하지만 수행하기 전에, 당신은 "war" target를 수행할 필요가 있다. 이 target가 수행된후, 당신의 프로젝트를 refresh하라. 당신이 위 작업을 성공적으로 수행한후에, Eclipse에서 당신이 수행하고 싶은 테스트(이를테면, UserDaoTest)를 열고 Run → Debug As → JUnit Test를 수행하라. 당신은 모든 테스트를 수행하기 전에 "db-load" target를 수행해야 할지도 모른다. 나는 각각의 레이어를 위해 Base*TestCase클래스내 다음의 메소드를 추가했지만, Test클래스내 모든 테스트를 수행하기전에 데이터베이스를 리로드하기 위해 DBUnit을 발생시켰다. 이것은 "test-all"의 수행시간을 감소시키기 위해 이것을 삭제한다.
At line 62 removed 2 lines.
After you have successfully done so, in Eclipse open a test you'd like to run (i.e. UserDaoTest) and go to Run → Debug As → JUnit Test. Note that you may have to run the "db-load" target before you run your tests every so often. I did have the following method in the Base*TestCase class for each layer, but this caused DBUnit to reload the database before every test in a Test class. Removing it reduces the execution time of "test-all" by more than 30 seconds.
At line 77 changed 1 line.
If the instructions above don't work for running JUnit tests in Eclipse, I suggest just using the command line - i.e. __ant test-dao -Dtestcase=UserDAO__. Running tests from the command line ''always'' works. ;-)
만약 위 사항이 Eclipse에서 JUnit테스트를 수행하기 위해 작동하지 않는다면, 나는 명령창을 사용(예를 들면, __ant test-dao -Dtestcase=UserDAO__)하길 제안한다. 명령창에서의 테스트 수행은 "언제나" 작동한다. ;-)
At line 79 changed 2 lines.
!!Tips for Debugging and UI Editing [#6]
For debugging, I use the [Tomcat Plugin|http://www.sysdeo.com/eclipse/tomcatPlugin.html] in Eclipse and set breakpoints. To make the breakpoints work you will need to indicate your source-path using the Eclipse menu {{Window->Preferences}}, select {{Tomcat}}, then {{Source Path}}.
!!디버깅과 UI편집을 위한 팁 [#6]
디버깅을 위해, 나는 Eclipse에서 [Tomcat Plugin|http://www.sysdeo.com/eclipse/tomcatPlugin.html]을 사용하고 breakpoint를 셋팅한다. breakpoint를 만들기 위해 당신은 Eclipse메뉴인 {{Window->Preferences}}를 사용하고 {{Tomcat}}를 선택한뒤, {{Source Path}}를 선택하여 당신의 소스경로를 표시할 필요가 있을것이다.
At line 82 changed 3 lines.
For little changes, I use "ant deploy-web" which only takes a couple of seconds. For truly minor tweaks, it's sometimes easier to edit the file in Tomcat's webapps folder. For major design changes, I usually run the app, view source on a page and save it to a "sandbox" folder in the same directory as my project. Then I do a find/replace and change all "/appfuse/" references to "../web/". This allows me to change CSS and JS files and just refresh the file in the sandbox.
최소한의 변경을 위해, 나는 단지 2초정도만 소요하는 "ant deploy-web"를 사용한다. 진짜로 미세한 변경을 위해서, 이것은 때때로 톰캣의 webapps폴더내 파일을 편집하는 것보다 쉽다. 가장 큰 디자인 변경을 위해서, 나는 언제나 애플리케이션을 실행하고, 페이지의 소스를 보며, 내 프로젝트와 같은 디렉토리내 "sandbox"폴더에 이것을 저장한다. 그리고나서 나는 검색/바꾸기를 수행하고 "/appfuse/"참조를 "../web/"로 변경한다. 이것은 나에게 CSS와 JS파일들을 변경하도록 허용하고 sandbox내 파일을 새로고침할수 있게 해준다.

Back to AppFuseEclipse_ko, or to the Page History.