input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
getSubscriptionsForMyCustomersFilteredByMultiColumnNoSubscriptionReturned ( ) { final int expected = 0 ; final org . oscm . paginator . Sorting sorting = new org . oscm . paginator . Sorting ( org . oscm . paginator . TableColumns . SUBSCRIPTION_ID , org . oscm . paginator . SortOrder . ASC ) ; java . util . Set < org ... | org . junit . Assert . assertEquals ( expected , result . size ( ) ) |
copiesEmptyInputStream ( ) { final byte [ ] bytes = createByteArray ( 0 ) ; final java . io . ByteArrayInputStream bais = new java . io . ByteArrayInputStream ( bytes ) ; final java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; org . apache . isis . core . commons . lang . InputStreamE... | org . junit . Assert . assertThat ( baos . toByteArray ( ) , arrayEqualTo ( bytes ) ) |
testGetObjectNoObjectIdInFilter ( ) { org . apache . chemistry . opencmis . inmemory . ObjectServiceTest . log . info ( "starting<sp>testGetObjectNoObjectIdInFilter()<sp>..." ) ; org . apache . chemistry . opencmis . inmemory . ObjectServiceTest . log . info ( "<sp>creating<sp>object" ) ; java . lang . String id = crea... | org . junit . Assert . assertEquals ( id , returnedId ) |
orelasitcsearch ( ) { java . lang . String filterStr = "itemKey<sp>eq<sp>'itemValue'<sp>or<sp>itemKey2<sp>eq<sp>'itemValue2'<sp>or<sp>itemKey3<sp>eq<sp>'itemValue3'" ; org . odata4j . expression . BoolCommonExpression filterExp = com . fujitsu . dc . core . odata . DcOptionsQueryParser . parseFilter ( filterStr ) ; org... | org . junit . Assert . assertEquals ( expected , esQueryHandler . getSource ( ) ) |
multipleTuplesMutliplesFiles ( ) { org . apache . storm . hdfs . bolt . AvroGenericRecordBolt bolt = makeAvroBolt ( hdfsURI , 1 , 1.0E-4F , org . apache . storm . hdfs . bolt . AvroGenericRecordBoltTest . schemaV1 ) ; bolt . prepare ( new org . apache . storm . Config ( ) , topologyContext , collector ) ; bolt . execut... | org . junit . Assert . assertEquals ( 4 , countNonZeroLengthFiles ( org . apache . storm . hdfs . bolt . AvroGenericRecordBoltTest . testRoot ) ) |
test_FiniteCapacityItemProduct_NoQtyPlanned_QtyMoved ( ) { final de . metas . handlingunits . impl . HUPIItemProductDisplayNameBuilder builder = new de . metas . handlingunits . impl . HUPIItemProductDisplayNameBuilder ( ) ; final de . metas . handlingunits . model . I_M_HU_PI_Item_Product piItemProduct = createM_HU_PI... | org . junit . Assert . assertEquals ( displayNameExpected , displayNameActual ) |
shouldReturnTrueWhenComparingRemoteVariantContainerWithContainer ( ) { org . eclipse . egit . core . synchronize . GitResourceVariantComparator grvc = new org . eclipse . egit . core . synchronize . GitResourceVariantComparator ( null ) ; java . io . File file1 = testRepo . createFile ( iProject , ( ( "test1" + ( java ... | org . junit . Assert . assertTrue ( grvc . compare ( base , remote ) ) |
testRemoveEndingString2 ( ) { final java . lang . String EXPECT = "removeEnding" ; final java . lang . String ENDING = "/" ; java . lang . String testString = ENDING + EXPECT ; java . lang . String result = org . talend . utils . string . StringUtilities . removeEndingString ( testString , ENDING ) ; "<AssertPlaceHolde... | org . junit . Assert . assertTrue ( testString . equals ( result ) ) |
testSetParameters_noNPE ( ) { this . agent . setParameters ( null ) ; "<AssertPlaceHolder>" ; } setParameters ( java . lang . String ) { this . parameters = parameters ; reloadUserData ( ) ; reconfigure ( ) ; } | org . junit . Assert . assertNull ( this . agent . parameters ) |
testWorkshop1EdgeCase1 ( ) { final java . lang . String expected = org . dswarm . persistence . util . DMPPersistenceUtil . getResourceAsString ( "test-mabxml.ws1ec1.result.json" ) ; final org . dswarm . converter . flow . JSONTransformationFlowFactory flowFactory = GuicedTest . injector . getInstance ( org . dswarm . ... | org . junit . Assert . assertEquals ( finalExpected , actual ) |
isAssignable ( ) { "<AssertPlaceHolder>" ; } isAssignable ( ) { org . junit . Assert . assertTrue ( this . mocker . getComponentUnderTest ( ) . isAssignable ( ) ) ; } | org . junit . Assert . assertTrue ( this . mocker . getComponentUnderTest ( ) . isAssignable ( ) ) |
shouldHandleZonedDateTime ( ) { final java . time . ZonedDateTime o = java . time . ZonedDateTime . now ( ) ; "<AssertPlaceHolder>" ; } serializeDeserialize ( org . apache . tinkerpop . shaded . jackson . databind . ObjectMapper , java . lang . Object , java . lang . Class ) { try ( final java . io . ByteArrayOutputStr... | org . junit . Assert . assertEquals ( o , serializeDeserialize ( mapper , o , java . time . ZonedDateTime . class ) ) |
testToBuilderIncomplete ( ) { com . google . cloud . compute . deprecated . NetworkInfo networkInfo = com . google . cloud . compute . deprecated . NetworkInfo . of ( com . google . cloud . compute . deprecated . NetworkInfoTest . NETWORK_ID , com . google . cloud . compute . deprecated . NetworkInfoTest . NETWORK_CONF... | org . junit . Assert . assertEquals ( networkInfo , networkInfo . toBuilder ( ) . build ( ) ) |
shouldDeserialiseSourceDestinationValuesUndirected ( ) { final uk . gov . gchq . gaffer . data . element . Edge edge = new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . source ( "1" ) . dest ( "2" ) . directed ( false ) . group ( TestGroups . ENTITY ) . build ( ) ; final byte [ ] rowKey = serialisati... | org . junit . Assert . assertEquals ( EdgeDirection . UNDIRECTED , direction ) |
testExceptionExtensionFilter_shouldReturnEmptyFileListIfDirectoryDoesNotExist ( ) { java . io . File [ ] files = WorkerProcessFailureMonitor . ExceptionExtensionFilter . listFiles ( new java . io . File ( "notFound" ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 0 , files . length ) |
testRunTransServletCheckParameter ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . HttpServletResponse response = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletResponse . c... | org . junit . Assert . assertEquals ( testValue , trans . getParameterValue ( testParameter ) ) |
test_LocalDate_adjustToJulianDate ( ) { org . threeten . extra . chrono . JulianDate julian = org . threeten . extra . chrono . JulianDate . of ( 2012 , 6 , 23 ) ; java . time . LocalDate test = LocalDate . MIN . with ( julian ) ; "<AssertPlaceHolder>" ; } of ( int , int , int ) { org . threeten . extra . chrono . YEAR... | org . junit . Assert . assertEquals ( java . time . LocalDate . of ( 2012 , 7 , 6 ) , test ) |
testSkip ( ) { org . apache . nifi . processors . evtx . parser . BinaryReader binaryReader = new org . apache . nifi . processors . evtx . parser . BinaryReader ( null ) ; binaryReader . skip ( 10 ) ; "<AssertPlaceHolder>" ; } getPosition ( ) { return position . get ( ) ; } | org . junit . Assert . assertEquals ( 10 , binaryReader . getPosition ( ) ) |
testCanDelete ( ) { this . policy = new com . taobao . metamorphosis . server . store . ArchiveDeletePolicy ( ) ; this . policy . setMaxReservedTime ( 1000L ) ; java . io . File file = org . easymock . classextension . EasyMock . createMock ( java . io . File . class ) ; org . easymock . classextension . EasyMock . exp... | org . junit . Assert . assertTrue ( this . policy . canDelete ( file , java . lang . System . currentTimeMillis ( ) ) ) |
creatingGroupsFromEmptyEntryMaps ( ) { com . google . common . collect . ImmutableMultimap < java . nio . file . Path , java . lang . String > subgroups = com . google . common . collect . ImmutableMultimap . of ( ) ; com . google . common . collect . ImmutableMultimap < java . nio . file . Path , com . facebook . buck... | org . junit . Assert . assertEquals ( expected , actual ) |
keepAliveEnabled ( ) { startServer ( ) ; io . grpc . netty . NettyClientTransport transport = newTransport ( newNegotiator ( ) , io . grpc . netty . DEFAULT_MAX_MESSAGE_SIZE , GrpcUtil . DEFAULT_MAX_HEADER_LIST_SIZE , null , true ) ; callMeMaybe ( transport . start ( clientTransportListener ) ) ; io . grpc . netty . Ne... | org . junit . Assert . assertNotNull ( transport . keepAliveManager ( ) ) |
testWildcardRequest ( ) { try { final fr . gouv . vitam . common . database . builder . query . Query query = fr . gouv . vitam . common . database . builder . query . QueryHelper . wildcard ( "var" , "value" ) ; "<AssertPlaceHolder>" ; } catch ( final fr . gouv . vitam . common . database . builder . request . excepti... | org . junit . Assert . assertTrue ( query . isReady ( ) ) |
testDoPostInvalidFeed ( ) { java . util . List < java . util . Map < java . lang . String , java . lang . Object > > in = buildTestEvent ( "xxx" ) ; javax . ws . rs . core . Response resp = resource . doPost ( in , com . yahoo . druid . metriccollector . MetricCollectorResourceTest . TEST_CLUSTER ) ; "<AssertPlaceHolde... | org . junit . Assert . assertEquals ( Response . Status . BAD_REQUEST . getStatusCode ( ) , resp . getStatus ( ) ) |
shouldUseExplicitSchemaName ( ) { final org . apache . kafka . connect . data . Schema schema = org . apache . kafka . connect . data . SchemaBuilder . struct ( ) . field ( "COLUMN_NAME" , Schema . OPTIONAL_INT64_SCHEMA ) . optional ( ) . build ( ) ; java . lang . String schemaFullName = "com.custom.schema" ; final io ... | org . junit . Assert . assertThat ( struct . schema ( ) . name ( ) , org . hamcrest . CoreMatchers . equalTo ( schemaFullName ) ) |
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne... | org . junit . Assert . assertTrue ( journalArticles . isEmpty ( ) ) |
testValidateFunctionNegative ( ) { net . objecthunter . exp4j . Expression exp = new net . objecthunter . exp4j . ExpressionBuilder ( "-sin(x)" ) . variable ( "x" ) . build ( ) ; net . objecthunter . exp4j . ValidationResult result = exp . validate ( false ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return valid ; } | org . junit . Assert . assertTrue ( result . isValid ( ) ) |
simpleColumnMapping ( ) { java . util . Properties properties = new java . util . Properties ( ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; properties . setProperty ( AccumuloSerDeParameters . COLUMN_MAPPINGS , ":rowID,cf:f1,cf:f2,cf:f3" ) ; properties .... | org . junit . Assert . assertNotNull ( serde . getCachedRow ( ) ) |
testGetEncodeGZipPropNotBoolean ( ) { java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . HashMap ( ) ; properties . put ( org . eclipse . kura . core . cloud . CloudServiceOptionsTest . ENCODE_GZIP , "invalid" ) ; org . eclipse . kura . core . cloud . CloudServiceOptions op... | org . junit . Assert . assertFalse ( gzip ) |
shortenText_exactLength ( ) { java . lang . String shortenedText = org . oscm . string . Strings . shortenText ( "hello" , 5 ) ; "<AssertPlaceHolder>" ; } shortenText ( java . lang . String , int ) { if ( text == null ) { return null ; } java . lang . String trimmedText = text . trim ( ) ; if ( ( trimmedText . length (... | org . junit . Assert . assertEquals ( "hello" , shortenedText ) |
testLambalClass ( ) { jetbrick . io . finder . AnnotationClassReader r = new jetbrick . io . finder . AnnotationClassReader ( ) ; r . addAnnotation ( javax . xml . bind . annotation . XmlRootElement . class ) ; java . io . InputStream is = jetbrick . io . finder . AnnotationClassReaderTest . class . getResourceAsStream... | org . junit . Assert . assertTrue ( r . isAnnotationed ( is ) ) |
testShouldRetrieveNegativeDoubleValueWithLesserThanEqualsCondition ( ) { org . apache . hadoop . hbase . client . HBaseAdmin admin = org . apache . hadoop . hbase . index . coprocessor . regionserver . TestMultipleIndicesInScan . UTIL . getHBaseAdmin ( ) ; org . apache . hadoop . hbase . HBaseTestingUtility . getZooKee... | org . junit . Assert . assertEquals ( testRes . size ( ) , 2 ) |
testUnknownRegionDefError ( ) { java . lang . String dir = getRandomDir ( ) ; java . lang . String g = ( "a()<sp>::=<sp><<\n" + ( ( "X<@r()>Y\n" + ">>\n" ) + "@a.q()<sp>::=<sp>\"foo\"" ) ) + ( newline ) ; org . stringtemplate . v4 . test . STErrorListener errors = new org . stringtemplate . v4 . misc . ErrorBuffer ( ) ... | org . junit . Assert . assertEquals ( expecting , result ) |
testOperator_lessThanNullNumber ( ) { java . lang . Number x = null ; java . lang . Number y = 123 ; boolean resutl = org . eclipse . smarthome . model . script . lib . NumberExtensions . operator_lessThan ( x , y ) ; "<AssertPlaceHolder>" ; } operator_lessThan ( java . lang . Number , java . lang . Number ) { java . m... | org . junit . Assert . assertTrue ( resutl ) |
testFixedField ( ) { org . jivesoftware . smackx . FormField field = new org . jivesoftware . smackx . FormField ( "abc<sp>def" ) ; field . setType ( "fixed" ) ; field . addValue ( org . apache . vysper . console . HtmlFormBuilderTest . VALUE1 ) ; field . setLabel ( org . apache . vysper . console . HtmlFormBuilderTest... | org . junit . Assert . assertEquals ( expected , actual ) |
allocatedEvaluatorStateHandlerTest ( ) { final org . apache . reef . webserver . ReefEventStateManager . AllocatedEvaluatorStateHandler h = this . injector . getInstance ( ReefEventStateManager . AllocatedEvaluatorStateHandler . class ) ; "<AssertPlaceHolder>" ; } getInstance ( java . lang . String ) { return getInstan... | org . junit . Assert . assertNotNull ( h ) |
testDoNotStartEmbeddedH2Server ( ) { java . lang . Throwable exceptionResult = null ; java . util . Map myMap = new java . util . HashMap ( ) ; myMap . put ( "spring.datasource.url" , "jdbc:h2:tcp://localhost:19092/mem:dataflow" ) ; myMap . put ( "spring.dataflow.embedded.database.enabled" , "false" ) ; myMap . put ( "... | org . junit . Assert . assertNotNull ( exceptionResult ) |
testGetChildren_OnEmptyFileSystem ( ) { org . I0Itec . zkclient . InMemoryConnection connection = new org . I0Itec . zkclient . InMemoryConnection ( ) ; java . util . List < java . lang . String > children = connection . getChildren ( "/" , false ) ; "<AssertPlaceHolder>" ; } getChildren ( java . lang . String , boolea... | org . junit . Assert . assertEquals ( 0 , children . size ( ) ) |
testIsOOXMLDocument2 ( ) { java . net . URL url = test . unit . be . fedict . eid . applet . service . signer . OOXMLSignatureVerifierTest . class . getResource ( "/signed-ooxml.docx" ) ; boolean result = be . fedict . eid . applet . service . signer . ooxml . OOXMLSignatureVerifier . isOOXML ( url ) ; "<AssertPlaceHol... | org . junit . Assert . assertTrue ( result ) |
create ( ) { org . syncope . client . to . ConfigurationTO configurationTO = new org . syncope . client . to . ConfigurationTO ( ) ; configurationTO . setKey ( "testKey" ) ; configurationTO . setValue ( "testValue" ) ; org . syncope . client . to . ConfigurationTO newConfigurationTO = restTemplate . postForObject ( ( (... | org . junit . Assert . assertEquals ( configurationTO , newConfigurationTO ) |
testEqualsEmptyObjects ( ) { entityVersion = new com . redhat . lightblue . EntityVersion ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } final com . redhat . lightblue . query . Value other = ( ... | org . junit . Assert . assertTrue ( entityVersion . equals ( new com . redhat . lightblue . EntityVersion ( ) ) ) |
testGetHostname ( ) { org . apache . tajo . master . cluster . ServerName server = new org . apache . tajo . master . cluster . ServerName ( "ex1.com" , 50030 ) ; "<AssertPlaceHolder>" ; } getHostname ( ) { return hostname ; } | org . junit . Assert . assertEquals ( "ex1.com" , server . getHostname ( ) ) |
testSearch_inrbilling_dt_billno ( ) { "<AssertPlaceHolder>" ; } search_inrbilling_dt_billno ( java . lang . Integer ) { java . lang . String sql = "from<sp>BillingInr<sp>b,<sp>Demographic<sp>d<sp>where<sp>d.DemographicNo=b.demographicNo<sp>and<sp>b.id=?<sp>and<sp>b.status<>'D'" ; javax . persistence . Query q = entityM... | org . junit . Assert . assertNotNull ( dao . search_inrbilling_dt_billno ( 1 ) ) |
testRunSqlite1 ( ) { sqlite . kripton58 . list . BindLongDataSource dataSource = sqlite . kripton58 . list . BindLongDataSource . getInstance ( ) ; dataSource . execute ( new sqlite . kripton58 . list . BindLongDataSource . Transaction ( ) { @ sqlite . kripton58 . list . Override public com . abubusoft . kripton . andr... | org . junit . Assert . assertTrue ( ( ( result . size ( ) ) == 1 ) ) |
testUpdate_workflow_run ( ) { logger . info ( "update_workflow_run" ) ; java . util . Date beforeDate = new java . sql . Timestamp ( java . lang . System . currentTimeMillis ( ) ) ; int workflowRunId = 32 ; java . lang . String pegasusCmd = "test<sp>pegasus<sp>cmd" ; java . lang . String workflowTemplate = "test<sp>tem... | org . junit . Assert . assertEquals ( expResult , result . getReturnValue ( ) ) |
shouldNotInjectIfUuidIsPresentInPayloadOnly ( ) { org . openqa . selenium . ImmutableCapabilities caps = new org . openqa . selenium . ImmutableCapabilities ( "browserName" , "firefox" , MARIONETTE , "cheese" , org . openqa . grid . internal . utils . configuration . GridNodeConfiguration . CONFIG_UUID_CAPABILITY , "12... | org . junit . Assert . assertEquals ( "cheese" , seen . getCapability ( org . openqa . grid . selenium . node . MARIONETTE ) ) |
paths_cyclophanelike2 ( ) { int [ ] [ ] g = org . openscience . cdk . graph . VertexShortCyclesTest . cyclophanelike2 ( ) ; org . openscience . cdk . graph . VertexShortCycles vsc = new org . openscience . cdk . graph . VertexShortCycles ( g ) ; int [ ] [ ] paths = vsc . paths ( ) ; int [ ] [ ] expected = new int [ ] [... | org . junit . Assert . assertThat ( paths , org . hamcrest . CoreMatchers . is ( expected ) ) |
whenRandomDices_0point1_returnsStrategy1 ( ) { com . graphhopper . jsprit . core . algorithm . SearchStrategyManager managerUnderTest = new com . graphhopper . jsprit . core . algorithm . SearchStrategyManager ( ) ; com . graphhopper . jsprit . core . algorithm . SearchStrategy mockedStrategy1 = mock ( com . graphhoppe... | org . junit . Assert . assertThat ( managerUnderTest . getRandomStrategy ( ) , org . hamcrest . CoreMatchers . is ( mockedStrategy1 ) ) |
testStaticFinalMethodValid ( ) { "<AssertPlaceHolder>" ; goose . swim ( ) ; } | org . junit . Assert . assertNotNull ( goose ) |
testIsReadableDocument ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( org . silverpeas . core . sharing . model . EJBUtilitaire . class ) ; org . silverpeas . util . ForeignPK publicationPK = new org . silverpeas . util . ForeignPK ( "100" , "kmelia10" ) ; org . silverpeas . core . contribution . p... | org . junit . Assert . assertThat ( instance . isReadable ( resource ) , org . hamcrest . Matchers . is ( true ) ) |
enableOAuthForConsumer ( ) { com . t1t . apim . rest . KongConsumer consumer = new com . t1t . apim . rest . KongConsumer ( ) . withUsername ( "oauthconsumer1" ) ; consumer = com . t1t . apim . rest . KongClientIntegrationTest . kongClient . createConsumer ( consumer ) ; com . t1t . apim . rest . KongPluginOAuthConsume... | org . junit . Assert . assertTrue ( ( response != null ) ) |
testEncodePostgreSQLUpperCase ( ) { System . out . println ( ( ( com . telefonica . iot . cygnus . utils . CommonUtilsForTests . getTestTraceHead ( "[NGSICharsets.encodePostgreSQL]" ) ) + "--------<sp>Upper<sp>case<sp>not<sp>accented<sp>characters<sp>are<sp>encoded" ) ) ; java . lang . String in = "ABCDEFGHIJKLMNOPQRST... | org . junit . Assert . assertEquals ( expected , out ) |
testWithDefaultWorkspaceName ( ) { org . apache . jackrabbit . oak . api . ContentRepository repo = new org . apache . jackrabbit . oak . Oak ( ) . with ( "test" ) . with ( new org . apache . jackrabbit . oak . spi . security . OpenSecurityProvider ( ) ) . createContentRepository ( ) ; java . lang . String [ ] valid = ... | org . junit . Assert . assertEquals ( "test" , cs . getWorkspaceName ( ) ) |
search_selection ( ) { touch ( "a.csv" ) ; touch ( "b.csv" ) ; touch ( "c.csv" ) ; org . apache . hadoop . fs . FileSystem fs = getTempFileSystem ( ) ; java . util . List < org . apache . hadoop . fs . FileStatus > results = com . asakusafw . runtime . directio . hadoop . HadoopDataSourceUtil . search ( fs , getBase ( ... | org . junit . Assert . assertThat ( normalize ( results ) , is ( path ( "a.csv" , "b.csv" ) ) ) |
testNewPDBMonomer ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IPDBMonomer monomer = builder . newInstance ( org . openscience . cdk . interfaces . IPDBMonomer . cl... | org . junit . Assert . assertNotNull ( monomer ) |
testPreg_replace_3args_2 ( ) { logger . info ( "preg_replace" ) ; java . util . regex . Pattern pattern = java . util . regex . Pattern . compile ( "\\s+" ) ; java . lang . String replacement = "<sp>" ; java . lang . String subject = "a<sp>a" ; java . lang . String expResult = "a<sp>a" ; java . lang . String result = c... | org . junit . Assert . assertEquals ( expResult , result ) |
testHashCode ( ) { org . bff . javampd . MPDItem item1 = new org . bff . javampd . album . MPDAlbum ( "Album1" , "Artist1" ) ; org . bff . javampd . MPDItem item2 = new org . bff . javampd . album . MPDAlbum ( "Album1" , "Artist1" ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { int result = super . hashCode ( ) ; result =... | org . junit . Assert . assertEquals ( item1 . hashCode ( ) , item2 . hashCode ( ) ) |
testCanNotValidateOutsideOfEdorg ( ) { org . slc . sli . domain . Entity sea = helper . generateEdorgWithParent ( null ) ; org . slc . sli . domain . Entity lea = helper . generateEdorgWithParent ( sea . getEntityId ( ) ) ; org . slc . sli . domain . Entity school2 = helper . generateEdorgWithParent ( null ) ; helper .... | org . junit . Assert . assertFalse ( validator . validate ( EntityNames . STAFF_COHORT_ASSOCIATION , cohortIds ) . equals ( cohortIds ) ) |
testMustBlockCallBackRequestWhenActive ( ) { manager . activateServerPushFor ( org . eclipse . rap . rwt . internal . serverpush . ServerPushManager_Test . HANDLE_1 ) ; "<AssertPlaceHolder>" ; } mustBlockCallBackRequest ( ) { return ( isServerPushActive ( ) ) && ( ! ( hasRunnables ) ) ; } | org . junit . Assert . assertTrue ( manager . mustBlockCallBackRequest ( ) ) |
getValue_unknownErrorCode ( ) { final com . rapid7 . client . dcerpc . RPCException rpcException = new com . rapid7 . client . dcerpc . RPCException ( "test" , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } getErrorCode ( ) { return errorCode ; } | org . junit . Assert . assertNull ( rpcException . getErrorCode ( ) ) |
testIsDispatchable ( ) { "<AssertPlaceHolder>" ; } isDispatchable ( ) { return dispatchable ; } | org . junit . Assert . assertTrue ( job . isDispatchable ( ) ) |
testOnException ( ) { java . util . concurrent . atomic . AtomicReference < org . slieb . throwables . java . lang . Throwable > reference = new java . util . concurrent . atomic . AtomicReference ( ) ; org . slieb . throwables . java . lang . Exception expected = new org . slieb . throwables . java . lang . Exception ... | org . junit . Assert . assertEquals ( expected , reference . get ( ) ) |
shouldChangeUserObject ( ) { java . lang . String userObject = "Hello<sp>World" ; entry . setUserObject ( userObject ) ; "<AssertPlaceHolder>" ; } getUserObject ( ) { return ( userObject ) == null ? null : userObject . get ( ) ; } | org . junit . Assert . assertThat ( entry . getUserObject ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( userObject ) ) ) |
testDeserialization ( ) { com . fasterxml . jackson . databind . ObjectMapper mapper = newMapper ( ) ; java . util . Map < java . time . LocalDate , java . lang . String > map = new java . util . HashMap ( ) ; map . put ( null , "test" ) ; java . util . Map < java . time . LocalDate , java . lang . String > value = map... | org . junit . Assert . assertEquals ( map , value ) |
testMultDimArray ( ) { net . sourceforge . pmd . lang . java . ast . ASTCompilationUnit cu = net . sourceforge . pmd . lang . java . ParserTstUtil . parseJava14 ( net . sourceforge . pmd . lang . java . ast . ASTLocalVariableDeclarationTest . TEST2 ) ; net . sourceforge . pmd . lang . java . ast . ASTLocalVariableDecla... | org . junit . Assert . assertEquals ( 2 , node . getArrayDepth ( ) ) |
datasetShouldNotBeDeaccessionedWithOneDraftVersion ( ) { java . util . List < edu . harvard . iq . dataverse . DatasetVersion > versionList = new java . util . ArrayList < edu . harvard . iq . dataverse . DatasetVersion > ( ) ; versionList . add ( this . draftVersion ) ; edu . harvard . iq . dataverse . Dataset dataset... | org . junit . Assert . assertFalse ( dataset . isDeaccessioned ( ) ) |
testOperator_lessThanNumberNull ( ) { java . lang . Number x = 12 ; java . lang . Number y = null ; boolean resutl = org . eclipse . smarthome . model . script . lib . NumberExtensions . operator_lessThan ( x , y ) ; "<AssertPlaceHolder>" ; } operator_lessThan ( java . lang . Number , java . lang . Number ) { java . ma... | org . junit . Assert . assertFalse ( resutl ) |
shouldListAllIndexRules ( ) { org . neo4j . kernel . impl . store . SchemaStorageTest . createSchema ( org . neo4j . kernel . impl . store . SchemaStorageTest . index ( org . neo4j . kernel . impl . store . SchemaStorageTest . LABEL1 , org . neo4j . kernel . impl . store . SchemaStorageTest . PROP1 ) , org . neo4j . ke... | org . junit . Assert . assertEquals ( expectedRules , listedRules ) |
testFindByNaturalId ( ) { insertAnnotatedEntities ( 1 ) ; org . hibernate . Session session = sf . openSession ( ) ; com . hazelcast . hibernate . entity . AnnotatedEntity toBeUpdated = ( ( com . hazelcast . hibernate . entity . AnnotatedEntity ) ( session . byNaturalId ( com . hazelcast . hibernate . entity . Annotate... | org . junit . Assert . assertEquals ( "dummy:0" , toBeUpdated . getTitle ( ) ) |
testGetNumberOfInlinksZero ( ) { int inlinks = fetchPage ( "Unconnected_page" ) . getNumberOfInlinks ( ) ; "<AssertPlaceHolder>" ; } getNumberOfInlinks ( ) { java . math . BigInteger nrOfInlinks = new java . math . BigInteger ( "0" ) ; long id = __getId ( ) ; org . hibernate . Session session = wiki . __getHibernateSes... | org . junit . Assert . assertEquals ( 0 , inlinks ) |
stressTest ( ) { final org . netbeans . lib . v8debug . connection . ServerConnection sn = new org . netbeans . lib . v8debug . connection . ServerConnection ( ) ; int port = sn . getPort ( ) ; org . netbeans . lib . v8debug . connection . ClientConnection cn = new org . netbeans . lib . v8debug . connection . ClientCo... | org . junit . Assert . assertTrue ( listener . success ( ) ) |
testVoerStapUitZonderPersoon ( ) { final boolean stapResultaat = betrokkenheidBepaalMagLeverenStap . voerStapUit ( onderwerp , context , this . resultaat ) ; "<AssertPlaceHolder>" ; } voerStapUit ( nl . bzk . brp . model . basis . BrpObject , nl . bzk . brp . business . stappen . StappenContext , nl . bzk . brp . busin... | org . junit . Assert . assertTrue ( stapResultaat ) |
getLabel_NullName ( ) { vMp1 . setName ( null ) ; java . lang . String label = umpb . getLabel ( vMp1 ) ; "<AssertPlaceHolder>" ; } getMarketplaceId ( ) { return marketplaceId ; } | org . junit . Assert . assertEquals ( vMp1 . getMarketplaceId ( ) , label ) |
testAddAccessConfig_Operation ( ) { com . google . cloud . compute . deprecated . NetworkInterface . AccessConfig accessConfig = com . google . cloud . compute . deprecated . NetworkInterface . AccessConfig . of ( "192.168.1.1" ) ; org . easymock . EasyMock . expect ( computeRpcMock . addAccessConfig ( com . google . c... | org . junit . Assert . assertEquals ( zoneOperation , compute . addAccessConfig ( com . google . cloud . compute . deprecated . ComputeImplTest . INSTANCE_ID , "networkInterface" , accessConfig ) ) |
testSingleView ( ) { com . streamsets . pipeline . stage . origin . jdbc . table . TableConfigBean tableConfigBean = new com . streamsets . pipeline . stage . origin . jdbc . table . TableJdbcSourceTestBuilder . TableConfigBeanTestBuilder ( ) . tablePattern ( "CRICKET_STARS_VIEW" ) . schema ( database ) . overrideDefau... | org . junit . Assert . assertEquals ( 10 , records . size ( ) ) |
testOTAIFrameFile ( ) { final java . lang . String appIdSuffix = com . sap . prd . mobile . ios . mios . StraightForwardLibAndAppTest . extractAppIdSuffixFromLogFile ( new java . io . File ( com . sap . prd . mobile . ios . mios . StraightForwardLibAndAppTest . appVerifier . getBasedir ( ) , com . sap . prd . mobile . ... | org . junit . Assert . assertTrue ( otaHtmlFileActualRelease . exists ( ) ) |
testZeroReal ( ) { org . apache . commons . math3 . complex . Complex c = new org . apache . commons . math3 . complex . Complex ( 0.0 , ( - 1.4343 ) ) ; java . lang . String expected = ( "0<sp>-<sp>1" + ( getDecimalCharacter ( ) ) ) + "43i" ; java . lang . String actual = complexFormat . format ( c ) ; "<AssertPlaceHo... | org . junit . Assert . assertEquals ( expected , actual ) |
testTwoByteKey ( ) { final byte [ ] klvBytes = new byte [ ] { - 14 , 99 , 3 , - 1 , 0 , 1 } ; final byte [ ] value = getValueBytes ( KeyLength . TwoBytes , LengthEncoding . OneByte , klvBytes ) ; "<AssertPlaceHolder>" ; } getValueBytes ( org . codice . ddf . libs . klv . KeyLength , org . codice . ddf . libs . klv . Le... | org . junit . Assert . assertThat ( value , org . hamcrest . CoreMatchers . is ( new byte [ ] { - 1 , 0 , 1 } ) ) |
test_CompositionWithSource ( ) { java . util . ArrayList < java . lang . Double > input = new java . util . ArrayList < java . lang . Double > ( java . util . Arrays . asList ( 88.0 , 754.8 , 0.0 , 123456.2 ) ) ; java . util . ArrayList < java . lang . Integer > expectedResults = new java . util . ArrayList < java . la... | org . junit . Assert . assertEquals ( expectedResults . get ( count ) , i ) |
testWithEmptyGraphWithVertices ( ) { org . apache . flink . graph . library . clustering . directed . TriadicCensus . Result expectedResult = new org . apache . flink . graph . library . clustering . directed . TriadicCensus . Result ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ) ; org . apache . fli... | org . junit . Assert . assertEquals ( expectedResult , triadCensus ) |
medianOfThreeSamplesIsMiddleSample ( ) { impl . addSample ( 42 ) ; impl . addSample ( 41 ) ; impl . addSample ( 43 ) ; "<AssertPlaceHolder>" ; } getPercentile ( int ) { return getPercentile ( requestedPercentile , new java . util . ArrayList < java . lang . Double > ( cslm . values ( ) ) ) ; } | org . junit . Assert . assertEquals ( 42 , impl . getPercentile ( 50 ) ) |
testResolveBean ( ) { org . camunda . bpm . engine . runtime . ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "testRetry" ) ; org . camunda . bpm . engine . runtime . JobQuery query = managementService . createJobQuery ( ) . processInstanceId ( processInstance . getId ( ) ) ; org . camun... | org . junit . Assert . assertEquals ( 6 , job . getRetries ( ) ) |
test ( ) { org . fastcatsearch . ir . search . clause . MultiTermOperatedClause multiTermOperatedClause = new org . fastcatsearch . ir . search . clause . MultiTermOperatedClause ( ) ; int queryPosition = 0 ; int weight = 1 ; org . fastcatsearch . ir . search . PostingDoc [ ] data = createData ( new int [ ] { 1 , 2 , 3... | org . junit . Assert . assertTrue ( reader . hasNext ( ) ) |
convertAnODTDocumentToDoc ( ) { java . io . File convertedDocument = converter . convert ( document , inFormat ( doc ) ) ; "<AssertPlaceHolder>" ; } exists ( ) { return ( getId ( ) ) != null ; } | org . junit . Assert . assertThat ( convertedDocument . exists ( ) , org . hamcrest . Matchers . is ( true ) ) |
testScriptFunction3 ( ) { com . bj58 . oceanus . core . shard . Script script = new com . bj58 . oceanus . core . shard . Script ( ) ; script . setExecute ( "mod($age)" ) ; com . bj58 . oceanus . core . shard . ScriptFunction function = new com . bj58 . oceanus . core . shard . ScriptFunction ( script ) ; int size = 25... | org . junit . Assert . assertEquals ( 1 , result ) |
testBuildUnconditionalRequestAddsCacheControlNoCache ( ) { final org . apache . hc . core5 . http . HttpRequest result = impl . buildUnconditionalRequest ( request ) ; boolean ccNoCacheFound = false ; final java . util . Iterator < org . apache . hc . core5 . http . HeaderElement > it = org . apache . hc . core5 . http... | org . junit . Assert . assertTrue ( ccNoCacheFound ) |
proceedFromDelegateMethodIntoMethodInheritedFromBaseClass ( ) { final mockit . DelegateInvocationProceedTest . ClassToBeMocked obj = new mockit . DelegateInvocationProceedTest . ClassToBeMocked ( ) ; new mockit . Expectations ( obj ) { { obj . baseMethod ( anyInt ) ; result = new mockit . Delegate ( ) { @ mockit . Mock... | org . junit . Assert . assertEquals ( 3 , obj . baseMethod ( 1 ) ) |
shouldMergeEmptyModel ( ) { victim . merge ( new ro . isdc . wro . model . WroModel ( ) ) ; "<AssertPlaceHolder>" ; } buildValidModel ( ) { factory = new ro . isdc . wro . model . factory . XmlModelFactory ( ) { @ ro . isdc . wro . model . Override protected java . io . InputStream getModelResourceAsStream ( ) { return... | org . junit . Assert . assertEquals ( buildValidModel ( ) , victim ) |
viewEmpty ( ) { stateMachine . execute ( org . jboss . hal . ballroom . form . VIEW , org . jboss . hal . ballroom . form . EMPTY ) ; "<AssertPlaceHolder>" ; } current ( ) { return current ; } | org . junit . Assert . assertEquals ( org . jboss . hal . ballroom . form . EMPTY , stateMachine . current ( ) ) |
validate_shouldPassIfStartDateIsNotInFuture ( ) { org . openmrs . Relationship relationship = new org . openmrs . Relationship ( 1 ) ; java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap ( ) ; org . springframework . validation . MapBindingResult errors = new org . springfr... | org . junit . Assert . assertFalse ( errors . hasErrors ( ) ) |
testMixAddIntIntIntUnsigned ( ) { int expected = 293055231 ; int actual = de . nx42 . maps4cim . map . texture . data . Texture . mixAdd ( 6689211 , 286331153 , 34867 ) ; "<AssertPlaceHolder>" ; } mixAdd ( int , int , int ) { return ( ( ( ( ( texture1 & 255 ) + ( texture2 & 255 ) ) + ( texture3 & 255 ) ) | ( ( ( ( ( te... | org . junit . Assert . assertEquals ( expected , actual ) |
checkResetAndRestoreConfiguration ( ) { com . orange . cepheus . cep . model . Configuration configuration = getBasicConf ( ) ; esperEventProcessor . setConfiguration ( configuration ) ; esperEventProcessor . reset ( ) ; "<AssertPlaceHolder>" ; esperEventProcessor . setConfiguration ( configuration ) ; esperEventProces... | org . junit . Assert . assertNull ( esperEventProcessor . getConfiguration ( ) ) |
findUpstreamEntitlementForStackNoResults ( ) { java . lang . String stackingId = "test_stack_id" ; org . candlepin . model . Product product = org . candlepin . test . TestUtil . createProduct ( ) ; product . setAttribute ( Product . Attributes . STACKING_ID , stackingId ) ; productCurator . create ( product ) ; org . ... | org . junit . Assert . assertNull ( result ) |
testGetItemDocument ( ) { org . wikidata . wdtk . datamodel . implementation . ItemDocument o1 = new org . wikidata . wdtk . datamodel . implementation . ItemDocumentImpl ( factory . getItemIdValue ( "Q42" , "foo" ) , java . util . Collections . emptyList ( ) , java . util . Collections . emptyList ( ) , java . util . ... | org . junit . Assert . assertEquals ( o1 , o2 ) |
testHalfStuff ( ) { if ( ! ( org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . getClass ( ) . getSimpleName ( ) . toLowerCase ( ) . contains ( "cuda" ) ) ) return ; lombok . val dtype = org . nd4j . linalg . factory . Nd4j . dataType ( ) ; org . nd4j . linalg . factory . Nd4j . setDataType ( DataBuffer . Type... | org . junit . Assert . assertEquals ( exp , arr ) |
enabledConfigOnly ( ) { input . setConfig ( new org . apache . hadoop . fs . Path ( "." ) ) ; input . init ( ) ; com . hotels . bdp . circustrain . metrics . conf . ValidatedGraphite validated = validator . validate ( input ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { return validated . isEnabled ( ) ; } | org . junit . Assert . assertThat ( validated . isEnabled ( ) , org . hamcrest . CoreMatchers . is ( false ) ) |
popEldestTransactionToRequest ( ) { com . iota . iri . network . TransactionRequester txReq = new com . iota . iri . network . TransactionRequester ( com . iota . iri . network . TransactionRequesterTest . tangle , com . iota . iri . network . TransactionRequesterTest . snapshotProvider ) ; com . iota . iri . model . H... | org . junit . Assert . assertFalse ( txReq . isTransactionRequested ( eldest , false ) ) |
showLogs_withLogConfigEnabled ( ) { final io . fabric8 . maven . docker . config . LogConfiguration logConfig = new io . fabric8 . maven . docker . config . LogConfiguration . Builder ( ) . enabled ( true ) . build ( ) ; final io . fabric8 . maven . docker . config . RunImageConfiguration runConfig = new io . fabric8 .... | org . junit . Assert . assertTrue ( actual ) |
compareTo_with_buildNumber ( ) { com . vdurmont . semver4j . Semver v3 = new com . vdurmont . semver4j . Semver ( "1.24.1-rc3+903423.234" ) ; com . vdurmont . semver4j . Semver v4 = new com . vdurmont . semver4j . Semver ( "1.24.1-rc3+903423.235" ) ; "<AssertPlaceHolder>" ; } compareTo ( com . vdurmont . semver4j . Sem... | org . junit . Assert . assertEquals ( 0 , v3 . compareTo ( v4 ) ) |
testSameProxy ( ) { if ( ! ( com . github . jmkgreen . morphia . mapping . lazy . LazyFeatureDependencies . testDependencyFullFilled ( ) ) ) { return ; } com . github . jmkgreen . morphia . mapping . lazy . TestLazySingleReference . RootEntity root = new com . github . jmkgreen . morphia . mapping . lazy . TestLazySing... | org . junit . Assert . assertSame ( root . r , root . secondReference ) |
testItemPKUpdate ( ) { com . foundationdb . server . test . it . keyupdate . KeyUpdateRow order = testStore . find ( new com . foundationdb . server . test . it . keyupdate . HKey ( vendorRT , 1L , customerRT , 12L , orderRT , 122L ) ) ; "<AssertPlaceHolder>" ; com . foundationdb . server . test . it . keyupdate . KeyU... | org . junit . Assert . assertNotNull ( order ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.