Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse IDE - Tutorial -> 20.5. Write a test class, JDT(What is the correct protocol for calling a function in a different class?)
Eclipse IDE - Tutorial -> 20.5. Write a test class, JDT [message #1457524] Fri, 31 October 2014 12:14
Clyde Eisenbeis is currently offline Clyde EisenbeisFriend
Messages: 16
Registered: October 2014
Junior Member
Following the Lars Vogel Tutorial -> http://www.vogella.com/tutorials/Eclipse/article.html#quickfixcontentassists ... led me to the following:

//---------------------------------
package com.vogella.ide.todo;
import java.util.List;
public class TodoProviderTest
{
public static void main(String[] args)
{
System.out.println(TodoProviderListCount());
}
private static int TodoProviderListCount()
{
TodoProvider tp = new TodoProvider();
List list = tp.createInitialModel();
return list.size();
}
}
//---------------------------------

I inserted the "private static int TodoProviderListCount()". This works. Is this considered a standard way? Is there a simpler, cleaner way?

Previous Topic:Need Help
Next Topic:Eclipse Java debugger and class unloading.
Goto Forum:
  


Current Time: Fri Apr 26 13:38:39 GMT 2024

Powered by FUDForum. Page generated in 0.03129 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top