~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/java/java_lib_various_runme.java

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
      if ( !got[i].equals(expected[i]) )
29
29
        throw new RuntimeException("Name failed " + i + " " + got[i] + "|" + expected[i]);
30
30
 
31
 
    // STRING_ARRAY variable setter
32
 
//    String newLangs[] = { "French", "Italian", "Spanish" };
33
 
//    java_lib_various.setLanguages(newLangs);
34
 
 
35
31
    // STRING_ARRAY variable getter
36
32
    String langscheck[] = { "Hungarian", "Afrikaans", "Norwegian" };
37
33
    String langs[] = java_lib_various.getLanguages();
39
35
      if ( !langs[i].equals(langscheck[i]) )
40
36
        throw new RuntimeException("Languages read failed " + i + " " + langs[i] + "|" + langscheck[i]);
41
37
 
 
38
    // STRING_ARRAY variable setter
 
39
    String newLangs[] = { "French", "Italian", "Spanish" };
 
40
    java_lib_various.setLanguages(newLangs);
 
41
 
 
42
    // STRING_ARRAY variable getter
 
43
    langs = java_lib_various.getLanguages();
 
44
    for (int i=0; i<langs.length; i++)
 
45
      if ( !langs[i].equals(newLangs[i]) )
 
46
        throw new RuntimeException("Languages verify failed " + i + " " + langs[i] + "|" + newLangs[i]);
 
47
 
42
48
    // STRING_RET test
43
49
    {
44
50
      String stringOutArray[] = { "" };