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 -> ... led me to the following:

package com.vogella.ide.todo;
import java.util.List;
public class TodoProviderTest
public static void main(String[] args)
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: Tue Feb 27 04:17:06 GMT 2024

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

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

Back to the top