Example usage for java.lang Object Object

List of usage examples for java.lang Object Object

Introduction

In this page you can find the example usage for java.lang Object Object.

Prototype

@HotSpotIntrinsicCandidate
public Object() 

Source Link

Document

Constructs a new object.

Usage

From source file:com.github.horrorho.inflatabledonkey.cloud.AssetPool.java

public AssetPool(AuthorizeAssetsClient authorizeAssets, VoodooChunkEncryptionKeyMapper keyMapper,
        Set<Asset> assets) {
    this(new Object(), authorizeAssets, keyMapper, assets);
}

From source file:com.opensymphony.webwork.util.ContainUtil.java

public void testNull() throws Exception {
        assertFalse(ContainUtil.contains(null, null));
        assertFalse(ContainUtil.contains(new Object(), null));
        assertFalse(ContainUtil.contains(null, new Object()));
    }/*from w  w  w .  ja v  a 2s . c o  m*/

From source file:io.smartspaces.activity.annotation.StandardConfigurationPropertyAnnotationProcessorTest.java

@Test
public void defaultInt_exists_ok() {
    final int expected = 42;
    setConfigValue(expected);/*ww w  .  j  a  v  a  2s  .c  o m*/
    int actual = new Object() {
        @ConfigurationProperty(name = property, required = false)
        private int field = 1 + expected;

        {
            // need to process annotations after default value is set
            injectConfigValues(this);
        }
    }.field;
    assertEquals(expected, actual);
}

From source file:org.keycloak.adapters.springsecurity.authentication.DirectAccessGrantAuthenticationProviderTest.java

@Test(expected = AuthenticationCredentialsNotFoundException.class)
public void testResolveUsernameUnknownPricipalClass() throws Exception {
    directAccessGrantAuthenticationProvider.resolveUsername(new Object());
}

From source file:com.redhat.lightblue.metadata.types.ContainerTypeTest.java

@Test(expected = UnsupportedOperationException.class)
public void testToJson() {
    type.toJson(JsonNodeFactory.withExactBigDecimals(true), new Object());
}

From source file:com.redhat.lightblue.metadata.types.StringTypeTest.java

@Test
public void testCompareV2Null() {
    assertEquals(stringType.compare(new Object(), null), 1);
}

From source file:edu.xjtu.qxcamerabridge.Qx10ServiceDelegatorImpl.java

@Override
public String actTakePicture() {
    String service = "camera";
    String serviceName = new Object() {
    }.getClass().getEnclosingMethod().getName();
    JSONObject replyJson = JSONActionWrapper.jsonrpc(service, serviceName, new ArrayList<>());
    String postviewurl = replyJson.getJSONArray("result").getJSONArray(0).getString(0);
    System.out.println(postviewurl);
    return postviewurl;
}

From source file:org.jax.maanova.plot.RenderChartImageTask.java

/**
 * Update the image size//from  w  w  w  . j  a  v  a  2s.co m
 * @param width
 *          the new width
 * @param height
 *          the new height
 */
public void setSize(int width, int height) {
    this.width = width;
    this.height = height;

    this.renderRequestQueue.offer(new Object());
}

From source file:com.job.portal.dao.JobsDAO.java

public JSONArray getAllJobs() {
    JSONArray obj = null;//from w  w w  .  j  a  va2  s. c  om
    try {
        String query = "select jm.jobId,jm.datePosted,jm.description,jm.experience,jm.functionalArea,jm.keywords,"
                + "jm.location,jm.qualificationRequired,jm.salary,jm.title,jm.vacancies,jm.companyId,"
                + "cm.companyName,ud.`name`,ud.userId " + "from job_master jm join company_master cm "
                + "on jm.companyId=cm.companyID " + "join user_details ud on " + "ud.userId=cm.userId "
                + "order by jm.datePosted desc";
        Object[] arr = new Object[0];
        obj = fetchList(query, arr);
    } catch (Exception e) {
        LogOut.log.error("In " + new Object() {
        }.getClass().getEnclosingClass().getName() + "." + new Object() {
        }.getClass().getEnclosingMethod().getName() + " " + e);
    } finally {
        return obj;
    }
}

From source file:com.github.fge.jsonschema.core.report.ProcessingMessageTest.java

@Test
public void settingAnyObjectSetsToString() {
    final Object foo = new Object();
    final JsonNode node = FACTORY.textNode(foo.toString());
    final ProcessingMessage msg = new ProcessingMessage().put("foo", foo);

    assertMessage(msg).hasField("foo", node);
}