Examples of array()


Examples of org.jboss.test.annotation.factory.support.ComplexWithDefault.array()

      assertEquals(123, complex.integer());
      assertEquals(true, complex.bool());
      assertEquals(String.class, complex.clazz());
      assertEquals(MyEnum.ONE, complex.enumVal());
      assertEquals("default", complex.annotation().value());
      assertEquals(new String[]{"The", "defaults"}, complex.array());

      int[] expectedIntArray = new int[] {1,2,3};
      int[] actualIntArray = complex.intArray();
      assertEquals(expectedIntArray.length, actualIntArray.length);
      for (int i = 0 ; i < expectedIntArray.length ; i++)
View Full Code Here

Examples of org.jruby.ext.ffi.ArrayMemoryIO.array()

        public boolean requiresPostInvoke() {
            return false;
        }
        private static final void addBufferParameter(InvocationBuffer buffer, IRubyObject parameter, int flags) {
            ArrayMemoryIO memory = (ArrayMemoryIO) ((Buffer) parameter).getMemoryIO();
                buffer.putArray(memory.array(), memory.arrayOffset(), memory.arrayLength(),
                        flags & bufferFlags((Buffer) parameter));
        }
        private static final long getAddress(Pointer ptr) {
            return ((DirectMemoryIO) ptr.getMemoryIO()).getAddress();
        }
View Full Code Here

Examples of org.json.JSONStringer.array()

     *             When JSON string could not be constructed.
     */
    public String getMidiDeviceInfo() throws JSONException
    {
        final JSONStringer js = new JSONStringer();
        js.array();
        for (final Info info : MidiSystem.getMidiDeviceInfo())
        {
            js.object();
            js.key("name").value(info.getName());
            js.key("description").value(info.getDescription());
View Full Code Here

Examples of org.json.JSONWriter.array()

        try {
            jw.object();
            jw.key("status");
            jw.value(getStatusLine());
            jw.key("instances");
            jw.array();
            for (Instance i : instances) {
                instanceInfo(jw, i);
            }
            jw.endArray();
            jw.endObject();
View Full Code Here

Examples of org.json_voltpatches.JSONStringer.array()

    @Override
    public String toJSONString() {
        JSONStringer js = new JSONStringer();
        try {
            js.array();
            for (Object o : m_params) {
                js.value(o);
            }
            js.endArray();
        }
View Full Code Here

Examples of org.mortbay.io.Buffer.array()

                {
                    if (_reason==null)
                        _header.put(line);
                    else
                    {
                        _header.put(line.array(), 0, HttpVersions.HTTP_1_1_BUFFER.length() + 5);
                        _header.put(_reason);
                        _header.put(HttpTokens.CRLF);
                    }
                }
View Full Code Here

Examples of org.voltdb.benchmark.tpcc.procedures.ByteBuilder.array()

            if (newData.length < minLength) minLength = newData.length;
            builder.append(newData, 0, minLength);

            int remaining = newLength - minLength;
            builder.append(c_data, 0, remaining);
            c_data = builder.array();
            voltQueueSQL(updateBCCustomer, c_balance, c_ytd_payment, c_payment_cnt, c_data, W_ID, D_ID, c_id);
        }
        else{
            c_data = new byte[0];
            voltQueueSQL(updateGCCustomer, c_balance, c_ytd_payment, c_payment_cnt, W_ID, D_ID, c_id);
View Full Code Here

Examples of org.wicketstuff.select2.json.JsonBuilder.array()

    if (choices != null && !choices.isEmpty()) {

      JsonBuilder selection = new JsonBuilder();

      try {
        selection.array();
        for (T choice : choices) {
          selection.object();
          getProvider().toJson(choice, selection);
          selection.endObject();
        }
View Full Code Here

Examples of org.xtreemfs.foundation.buffer.ReusableBuffer.array()

        ReplicationClientAdapter testClient = new ReplicationClientAdapter(client,
                config.getInetSocketAddress());
       
        // run some test operations
        ReusableBuffer result = testClient.chunk(fileName, offsetStart, offsetEnd).get();
        assertEquals(chunkResult, new String(result.array()));
       
        testClient.heartbeat(lsn, port).get();
    }
   
    /**
 
View Full Code Here

Examples of tests.support.Support_Proxy_I1.array()

    });

    Support_Proxy_I1 proxy = (Support_Proxy_I1) p;
    assertTrue("Failed identity test ", proxy.equals(proxy));
    assertTrue("Failed not equals test ", !proxy.equals(""));
    int[] result = (int[]) proxy.array(new long[] { 100L, -200L });
    assertEquals("Failed base type conversion test ", -200, result[0]);

    boolean worked = false;
    try {
      proxy.string("");
View Full Code Here
TOP
Copyright © 2015 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.