Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-21-2004
mdoar's Avatar
mdoar mdoar is offline
Registered User
 
Name: Matt Doar
Organization: Consulting Toolsmiths
Project: Investigation
 
Join Date: Oct 2003
Location: California
Posts: 3
Java unit tests don't test a seq of structs

Or perhaps I misunderstand the use of structures.

~Matt

Last edited by mdoar : 01-21-2004 at 05:21 PM.
Reply With Quote
  #2 (permalink)  
Old 01-21-2004
marc's Avatar
marc marc is online now
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,780
Sorry, but I'm afraid I don't understand the question.
Reply With Quote
  #3 (permalink)  
Old 01-21-2004
mdoar's Avatar
mdoar mdoar is offline
Registered User
 
Name: Matt Doar
Organization: Consulting Toolsmiths
Project: Investigation
 
Join Date: Oct 2003
Location: California
Posts: 3
The file IceJ-1.2.0/test/Ice/operations/Test.ice contains

struct Structure
{
MyClass* p;
MyEnum e;
AnotherStruct s;
};

and a number of sequences of other types, but not

sequence<Structure> StructS;

~Matt
Reply With Quote
  #4 (permalink)  
Old 01-21-2004
marc's Avatar
marc marc is online now
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,780
Ah, now I understand. Well, we can't test every possible combination in the test suite. But rest assured that it works fine, we use sequences of structs in many other applications
Reply With Quote
  #5 (permalink)  
Old 01-21-2004
mdoar's Avatar
mdoar mdoar is offline
Registered User
 
Name: Matt Doar
Organization: Consulting Toolsmiths
Project: Investigation
 
Join Date: Oct 2003
Location: California
Posts: 3
Well, actually, one can write code generators to create the .ice and .java files to test many more combinations than are currently tested. This detected some *very* subtle bugs for me once. It's also a helpful way to stress test the slice tools with very large files.

Anyway, I greatly enjoyed reading the ICE protocol chapter of the documentation last night - this looks like the right way to go. I'll be using it instead of CORBA in the future. Good luck!

~Matt
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: partial classes / structs in .net programmerdad Comments 2 08-09-2006 10:24 PM
Latency: structs vs. classes n2503v Help Center 7 10-09-2005 12:08 AM
C#: Attributes with Ice generated classes and structs DeepDiver Help Center 2 07-23-2005 02:16 AM
Impact of include on on structs in modules(Python) petrilli Help Center 2 03-10-2005 11:18 PM
Parameterized constructors for structs? shaver Comments 3 01-10-2004 06:59 PM


All times are GMT -4. The time now is 07:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.