Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse IDE - Tutorial -> 20.5. Write a test class (What is the correct protocol for calling a function in a different class?)
Eclipse IDE - Tutorial -> 20.5. Write a test class [message #1456986] Thu, 30 October 2014 23:09
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:Error Help
Next Topic:Need Help
Goto Forum:
  


Current Time: Mon Sep 28 23:23:59 GMT 2020

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

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

Back to the top