input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testMoveBaseModelToTrashIsNotVisible ( ) { org . junit . Assume . assumeTrue ( ( ( this ) instanceof com . liferay . trash . test . util . WhenIsAssetableBaseModel ) ) ; com . liferay . trash . test . util . WhenIsAssetableBaseModel whenIsAssetableBaseModel = ( ( com . liferay . trash . test . util . WhenIsAssetableBas...
org . junit . Assert . assertFalse ( whenIsAssetableBaseModel . isAssetEntryVisible ( baseModel , getAssetClassPK ( baseModel ) ) )
testFinalBoundaryOnly ( ) { java . lang . String delimiter = "\r\n" ; final java . lang . String boundary = "MockMultiPartTestBoundary" ; java . lang . String str = ( ( ( ( ( ( delimiter + "Hello<sp>world" ) + delimiter ) + delimiter ) + "--" ) + boundary ) + "--" ) + delimiter ; javax . servlet . MultipartConfigElemen...
org . junit . Assert . assertTrue ( mpis . getParts ( ) . isEmpty ( ) )
testSerialization ( ) { com . orsoncharts . label . StandardPieLabelGenerator lg1 = new com . orsoncharts . label . StandardPieLabelGenerator ( ) ; com . orsoncharts . label . StandardPieLabelGenerator lg2 = new com . orsoncharts . label . StandardPieLabelGenerator ( ) ; com . orsoncharts . TestUtils . serialized ( lg1...
org . junit . Assert . assertTrue ( lg1 . equals ( lg2 ) )
testGetStagedModelDataHandler ( ) { com . liferay . exportimport . kernel . lar . StagedModelDataHandler < ? > stagedModelDataHandler = com . liferay . exportimport . kernel . lar . StagedModelDataHandlerRegistryUtil . getStagedModelDataHandler ( com . liferay . portal . kernel . lar . bundle . stagedmodeldatahandlerre...
org . junit . Assert . assertEquals ( com . liferay . portal . kernel . lar . bundle . stagedmodeldatahandlerregistryutil . TestStagedModelDataHandler . class . getName ( ) , clazz . getName ( ) )
g_VX4X_hasXage_gt_30X ( ) { final org . apache . tinkerpop . gremlin . process . traversal . Traversal < org . apache . tinkerpop . gremlin . structure . Vertex , org . apache . tinkerpop . gremlin . structure . Vertex > traversalJosh = get_g_VX1X_hasXage_gt_30X ( convertToVertexId ( "josh" ) ) ; printTraversalForm ( t...
org . junit . Assert . assertTrue ( traversalJosh . hasNext ( ) )
testValueOfWithNull ( ) { "<AssertPlaceHolder>" ; } valueOf ( org . apache . geode . cache . InterestPolicy ) { for ( org . springframework . data . gemfire . InterestPolicyType interestPolicyType : org . springframework . data . gemfire . InterestPolicyType . values ( ) ) { if ( interestPolicyType . getInterestPolicy ...
org . junit . Assert . assertNull ( org . springframework . data . gemfire . InterestPolicyType . valueOf ( ( ( org . apache . geode . cache . InterestPolicy ) ( null ) ) ) )
findReturnsNullWhenVersionTagValueSetsExclusiveLowerMaxInclusiveHigherMin ( ) { java . lang . String mavenVersionRange = "(,1.1),[1.1,)" ; findReturnsValueWhenVersionTagValueIsSet ( mavenVersionRange ) ; "<AssertPlaceHolder>" ; } find ( ) { org . apache . maven . artifact . versioning . ArtifactVersion childMavenVersio...
org . junit . Assert . assertNull ( new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) )
testMaxFunctionQuantityTypeDifferentUnits ( ) { items . add ( createNumberItem ( "TestItem1" , javax . measure . quantity . Temperature . class , new org . eclipse . smarthome . core . library . types . QuantityType < javax . measure . quantity . Temperature > ( "100<sp>C" ) ) ) ; items . add ( createNumberItem ( "Test...
org . junit . Assert . assertEquals ( new org . eclipse . smarthome . core . library . types . QuantityType < javax . measure . quantity . Temperature > ( "100<sp>C" ) , state )
isStringWithLowerCaseLessThanWorking ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String query = "select<sp>r<sp>from<sp>RegularEntityTwo<sp>r<sp>" + "<sp>where<sp>r.id<sp>in<sp>(select<sp>sub.id<sp>from<sp>RegularEntityOne<sp>sub<sp>where<sp>lower(sub.stringAttribute)<sp><<sp>'just<sp>a<sp>string<sp>02')"...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
getDistributedExceptionForHsClientThrowException ( ) { if ( ! ( com . taobao . adfs . database . DatabaseExecutorForHandlerSocket . class . getName ( ) . equals ( getRepository ( ) . conf . get ( "database.executor.class.name" ) ) ) ) return ; getRepository ( ) . checkThread . close ( ) ; getRepository ( ) . conf . set...
org . junit . Assert . assertThat ( com . taobao . adfs . distributed . DistributedException . isNeedRestore ( t ) , org . hamcrest . Matchers . is ( true ) )
testConvert ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; org . apache . calcite . rel . type . RelDataType rowType = builder . getTypeFactory ( ) . builder ( ) . add ( ...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
testGetMentionsPagination ( ) { mockServer . expect ( requestTo ( "https://api.weibo.com/2/statuses/mentions.json?since_id=0&max_id=0&count=10&page=5&filter_by_author=0&filter_by_source=0&filter_by_type=0" ) ) . andExpect ( method ( org . springframework . social . weibo . api . impl . GET ) ) . andExpect ( header ( "A...
org . junit . Assert . assertEquals ( "" , firstStatus . getText ( ) )
getHostNameTest ( ) { "<AssertPlaceHolder>" ; } getHostName ( ) { java . lang . String hostName = "" ; try { hostName = java . net . InetAddress . getLocalHost ( ) . getHostName ( ) ; } catch ( java . net . UnknownHostException e ) { org . gbif . ipt . utils . URLUtils . LOG . info ( "No<sp>IP<sp>address<sp>for<sp>the<...
org . junit . Assert . assertNotNull ( org . gbif . ipt . utils . URLUtils . getHostName ( ) )
testAppendEntries ( ) { final long start = 1000 ; org . apache . ratis . server . storage . LogSegment segment = org . apache . ratis . server . storage . LogSegment . newOpenSegment ( null , start ) ; long size = org . apache . ratis . server . storage . SegmentedRaftLogFormat . getHeaderLength ( ) ; final long max = ...
org . junit . Assert . assertTrue ( ( ( segment . getTotalSize ( ) ) >= max ) )
peek_Hit ( ) { cache . put ( org . cache2k . test . core . BasicLongCacheOperationsTest . KEY , org . cache2k . test . core . BasicLongCacheOperationsTest . VALUE ) ; statistics ( ) . putCount . expect ( 1 ) . expectAllZero ( ) ; "<AssertPlaceHolder>" ; statistics ( ) . getCount . expect ( 1 ) . missCount . expect ( 0 ...
org . junit . Assert . assertNotNull ( cache . peek ( org . cache2k . test . core . BasicLongCacheOperationsTest . KEY ) )
shouldNotFindDeletedNodeInLabelScan ( ) { org . neo4j . internal . kernel . api . NodeTransactionStateTestBase . Node node = createNode ( "label" ) ; try ( org . neo4j . internal . kernel . api . org . neo4j . internal . kernel . api . Transaction tx = org . neo4j . internal . kernel . api . NodeTransactionStateTestBas...
org . junit . Assert . assertFalse ( cursor . next ( ) )
testFailedGreaterThanWithEqualsComparison ( ) { new org . opennms . core . criteria . CriteriaBuilder ( org . opennms . netmgt . dao . mock . BeanWrapperVisitorTest . TestBean . class ) . gt ( "four" , 4 ) . toCriteria ( ) . visit ( m_visitor ) ; "<AssertPlaceHolder>" ; } getMatches ( ) { return ( m_matches ) == null ?...
org . junit . Assert . assertEquals ( 0 , m_visitor . getMatches ( ) . size ( ) )
testSetPdxSerializationDetailsWhenPdxIsNotPersistent ( ) { final com . gemstone . gemfire . internal . cache . InternalCache mockCache = mockContext . mock ( com . gemstone . gemfire . internal . cache . InternalCache . class , "Cache" ) ; final com . gemstone . gemfire . cache . DiskStore mockDiskStore = mockContext ....
org . junit . Assert . assertFalse ( diskStoreDetails . isPdxSerializationMetaDataStored ( ) )
header ( ) { com . asakusafw . dmdl . directio . text . tabular . ModelLoader loaded = generateJavaFromLines ( new java . lang . String [ ] { "};" 0 , "<sp>header<sp>=<sp>force," , ")" , "simple<sp>=<sp>{" , "<sp>a<sp>:<sp>TEXT;" , "<sp>b<sp>:<sp>TEXT;" , "};" } ) ; byte [ ] contents = restore ( loaded , loaded . newMo...
org . junit . Assert . assertThat ( text ( contents ) , is ( "};" 1 ) )
testGetReceievedAddressesTest_nullMessageId_returnEmpty ( ) { java . util . Collection < java . lang . String > addresses = new java . util . ArrayList < java . lang . String > ( ) ; addresses . add ( "gm2552@cerner.com" ) ; final java . util . Set < java . lang . String > retAddresses = notifDao . getReceivedAddresses...
org . junit . Assert . assertEquals ( 0 , retAddresses . size ( ) )
testHandleSetText ( ) { handler = new org . eclipse . swt . internal . widgets . combokit . ComboOperationHandler ( combo ) ; handler . handleSet ( new org . eclipse . rap . json . JsonObject ( ) . add ( "text" , "abc" ) ) ; "<AssertPlaceHolder>" ; } getText ( ) { checkWidget ( ) ; return getText ( 0 ) ; }
org . junit . Assert . assertEquals ( "abc" , combo . getText ( ) )
testGetByPartitionIdNone ( ) { uk . ac . bbsrc . tgac . miso . core . data . SequencerPartitionContainer spc = dao . getSequencerPartitionContainerByPartitionId ( 9999L ) ; "<AssertPlaceHolder>" ; } getSequencerPartitionContainerByPartitionId ( long ) { currentSession ( ) . flush ( ) ; org . hibernate . Criteria criter...
org . junit . Assert . assertNull ( spc )
testEmptyModifyRewrite ( ) { java . lang . String str = "rule<sp>R<sp>\n" + ( ( ( ( ( ( "no-loop<sp>\n" + "when\n" ) + "<sp>$s<sp>:<sp>String()" ) + "then\n" ) + "<sp>System.out.println(\"intentional<sp>empty<sp>modify<sp>on<sp>$s\"<sp>+<sp>$s);" ) + "<sp>modify(<sp>$s<sp>)<sp>{<sp>}\n" ) + "end" ) ; org . kie . api . ...
org . junit . Assert . assertEquals ( 1 , fired )
testFindNoMatchingEmptyList ( ) { org . eclipse . mylyn . internal . gerrit . core . egit . GerritToGitMapping mapping = createTestMapping ( createRepositories ( ) ) ; "<AssertPlaceHolder>" ; } find ( ) { if ( ( gerritProject ) == null ) { return null ; } gerritHost = getHostFromUrl ( getGitDaemonUrl ( ) ) ; if ( ( ger...
org . junit . Assert . assertNull ( mapping . find ( ) )
testInvokePathEmptyAllowed ( ) { org . apache . cxf . Bus bus = org . apache . cxf . BusFactory . newInstance ( ) . createBus ( ) ; bus . setProperty ( "allow.empty.path.template.value" , true ) ; org . apache . cxf . jaxrs . client . JAXRSClientFactoryBean bean = new org . apache . cxf . jaxrs . client . JAXRSClientFa...
org . junit . Assert . assertNotNull ( store . getBook ( "" ) )
testDotTxt ( ) { com . sun . jersey . api . client . WebResource webResource = resource ( ) ; java . lang . String response = webResource . path ( "preliminaryapp" ) . path ( "oneandtwo" ) . path ( "txt" ) . path ( "test.txt" ) . get ( java . lang . String . class ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Objec...
org . junit . Assert . assertEquals ( "test.txt" , response )
testLargeBatchInProgress ( ) { long count = 10 ; long loops = 1000 ; long total = count * loops ; java . util . concurrent . atomic . AtomicLong result = new java . util . concurrent . atomic . AtomicLong ( 0 ) ; org . opennms . core . tasks . BatchTask task = new org . opennms . core . tasks . BatchTask ( m_coordinato...
org . junit . Assert . assertEquals ( ( ( total * ( total + 1 ) ) / 2 ) , result . get ( ) )
whenLoadPlusDeliverySizeDoesNotExceedsVehicleCapacity_itShouldReturnTrue ( ) { com . graphhopper . jsprit . core . problem . job . Service service = mock ( com . graphhopper . jsprit . core . problem . job . Delivery . class ) ; when ( service . getSize ( ) ) . thenReturn ( Capacity . Builder . newInstance ( ) . addDim...
org . junit . Assert . assertTrue ( constraint . fulfilled ( iContext ) )
should_adjust_call_bounds_based_on_best_soft_clip ( ) { au . edu . wehi . idsv . StructuralVariationCallBuilder builder = new au . edu . wehi . idsv . StructuralVariationCallBuilder ( getContext ( ) , ( ( au . edu . wehi . idsv . VariantContextDirectedEvidence ) ( new au . edu . wehi . idsv . IdsvVariantContextBuilder ...
org . junit . Assert . assertEquals ( new au . edu . wehi . idsv . BreakpointSummary ( 0 , FWD , 12 , 12 , 12 , 1 , BWD , 11 , 11 , 11 ) , call . getBreakendSummary ( ) )
testBuildWithSingleOrderBy ( ) { java . lang . String query = "SELECT<sp>FROM<sp>SMTH<sp>%s" ; java . lang . String condition = "condition<sp>" ; java . lang . Object parameter = new java . lang . Object ( ) ; java . lang . String condition1 = "condition1<sp>" ; java . lang . Object nullParameter = null ; org . lnu . i...
org . junit . Assert . assertEquals ( expected , actual )
testMetaComparatorTableKeysWithCommaOk ( ) { org . apache . hadoop . hbase . CellComparator c = CellComparatorImpl . META_COMPARATOR ; long now = java . lang . System . currentTimeMillis ( ) ; org . apache . hadoop . hbase . KeyValue a = new org . apache . hadoop . hbase . KeyValue ( org . apache . hadoop . hbase . uti...
org . junit . Assert . assertTrue ( ( ( c . compare ( a , b ) ) < 0 ) )
readProcessWithContract ( ) { final org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder builder = new org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder ( ) . createNewInstance ( "contract" , "1.0" ) ; builder . addActor ( "myActor" ) ; final org . bonitasoft . engine . ...
org . junit . Assert . assertThat ( process )
test31 ( ) { byte [ ] packet = new byte [ ] { ( ( byte ) ( 255 ) ) } ; com . github . mpjct . jmpjct . mysql . proto . Proto proto = new com . github . mpjct . jmpjct . mysql . proto . Proto ( packet ) ; java . util . ArrayList < byte [ ] > payload = new java . util . ArrayList < byte [ ] > ( ) ; payload . add ( com . ...
org . junit . Assert . assertArrayEquals ( packet , com . github . mpjct . jmpjct . mysql . proto . Proto . arraylist_to_array ( payload ) )
testSaveTwoRootObjectsWithNoType ( ) { com . fasterxml . jackson . databind . JsonNode expected = mapper . createArrayNode ( ) . add ( mapper . createObjectNode ( ) . put ( "userId" , "1" ) . put ( "name" , "Paul" ) ) . add ( mapper . createObjectNode ( ) . put ( "userId" , "2" ) . put ( "name" , "Anna" ) . put ( "sex"...
org . junit . Assert . assertEquals ( expected , result )
filtersNotForPlayer ( ) { java . util . Set < com . fundynamic . d2tm . game . entities . Entity > result = entitiesSet . filter ( new com . fundynamic . d2tm . game . entities . predicates . NotPredicate ( com . fundynamic . d2tm . game . entities . predicates . BelongsToPlayer . instance ( player ) ) ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( 6 , result . size ( ) )
slaveDownConnection ( ) { java . lang . String url = ( ( ( ( ( ( ( ( ( ( "jdbc:mariadb:replication//" + ( hostname ) ) + ( ( port ) == 0 ? "" : ":" + ( port ) ) ) + "," ) + ( hostname ) ) + ":8888" ) + "/" ) + ( database ) ) + "?user=" ) + ( username ) ) + ( ( password ) != null ? "&password=" + ( password ) : "" ) ) +...
org . junit . Assert . assertFalse ( connection . isReadOnly ( ) )
testGetSETDIFF ( ) { java . lang . String actual = table . getSETDIFF ( ) ; java . lang . String expected = "\\" ; "<AssertPlaceHolder>" ; } getSETDIFF ( ) { return "\\" ; }
org . junit . Assert . assertEquals ( expected , actual )
goodTests ( ) { for ( java . lang . String test : regex . EmailValidatorTest . goodTests ) { "<AssertPlaceHolder>" ; } } valid ( java . lang . String ) { return regex . EmailValidator . EMAIL_PATTERN . matcher ( email ) . matches ( ) ; }
org . junit . Assert . assertTrue ( test , regex . EmailValidator . valid ( test ) )
testExtractMinuteTimestamp ( ) { java . lang . String sqlText = ( "select<sp>ts,<sp>EXTRACT(MINUTE<sp>FROM<sp>ts)<sp>as<sp>\"MINUTE\"<sp>from<sp>" + ( com . splicemachine . derby . utils . SpliceDateFunctionsIT . tableWatcherI ) ) + "<sp>2012-12-31<sp>20:38:40.0<sp>|<sp>38<sp>|\n" 0 ; try ( com . splicemachine . derby ...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testNoLockFileWithPersistenceFalse ( ) { java . nio . file . Path journalDir = java . nio . file . Paths . get ( org . apache . activemq . artemis . core . server . impl . EmbeddedServerTest . SERVER_JOURNAL_DIR , org . apache . activemq . artemis . core . server . impl . EmbeddedServerTest . SERVER_LOCK_NAME ) ; boole...
org . junit . Assert . assertFalse ( lockExists )
testSize ( ) { bsonArray . add ( "wibble" ) ; bsonArray . add ( true ) ; bsonArray . add ( 123 ) ; "<AssertPlaceHolder>" ; } size ( ) { return list . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , bsonArray . size ( ) )
testCountRows ( ) { org . apache . accumulo . core . client . Connector conn = tester . getConnector ( ) ; final java . lang . String tA ; { java . lang . String [ ] names = getUniqueNames ( 1 ) ; tA = names [ 0 ] ; } { java . util . Map < org . apache . accumulo . core . data . Key , org . apache . accumulo . core . d...
org . junit . Assert . assertEquals ( expect , cnt )
intValue ( ) { "<AssertPlaceHolder>" ; } get ( long ) { org . sejda . sambox . cos . COSInteger value = org . sejda . sambox . cos . COSInteger . CACHE . get ( key ) ; if ( value == null ) { final org . sejda . sambox . cos . COSInteger newVal = new org . sejda . sambox . cos . COSInteger ( key ) ; value = org . sejda ...
org . junit . Assert . assertEquals ( 20 , org . sejda . sambox . cos . COSInteger . get ( 20 ) . intValue ( ) )
testGetEdgeNodeId ( ) { java . lang . String edgeNodeId = "edgenode01" ; org . powermock . reflect . Whitebox . setInternalState ( target , "edgeNodeId" , edgeNodeId ) ; "<AssertPlaceHolder>" ; } getEdgeNodeId ( ) { return edgeNodeId ; }
org . junit . Assert . assertThat ( target . getEdgeNodeId ( ) , org . hamcrest . CoreMatchers . is ( edgeNodeId ) )
testSetTag_Tag ( ) { co . nstant . in . cbor . model . DataItem di = new co . nstant . in . cbor . model . DataItem ( MajorType . UNSIGNED_INTEGER ) ; di . setTag ( new co . nstant . in . cbor . model . Tag ( 1 ) ) ; "<AssertPlaceHolder>" ; } getTag ( ) { return tag ; }
org . junit . Assert . assertNotNull ( di . getTag ( ) )
testRemoveFromHintMapDecodeHintType ( ) { com . google . zxing . DecodeHintType hintType = com . google . zxing . DecodeHintType . TRY_HARDER ; org . apache . camel . dataformat . barcode . BarcodeDataFormat instance = new org . apache . camel . dataformat . barcode . BarcodeDataFormat ( ) ; instance . removeFromHintMa...
org . junit . Assert . assertFalse ( instance . getReaderHintMap ( ) . containsKey ( hintType ) )
getNativeClient ( ) { final java . lang . Object nativeClient = clientWrapper . getNativeClient ( ) ; "<AssertPlaceHolder>" ; } getNativeClient ( ) { return memcachedClient ; }
org . junit . Assert . assertSame ( client , nativeClient )
test15 ( ) { org . demoiselle . jee . core . api . security . DemoiselleUser expResult = dml ; org . demoiselle . jee . core . api . security . DemoiselleUser result = instance . getUser ( ) ; "<AssertPlaceHolder>" ; } getIdentity ( ) { return identity ; }
org . junit . Assert . assertEquals ( expResult . getIdentity ( ) , result . getIdentity ( ) )
testGettingAnExistingRootCategoryReturnsTheCategory ( ) { org . pentaho . marketplace . domain . model . factories . interfaces . ICategoryFactory factory = this . createFactory ( ) ; java . lang . String name = "RootCategory" ; org . pentaho . marketplace . domain . model . entities . interfaces . ICategory expectedRo...
org . junit . Assert . assertSame ( expectedRootCategory , actualRootCategory )
shouldRejectWeightJustAboveCeiling ( ) { node . setWeight ( 101 ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( node , org . openstack . atlas . api . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultLis...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
testGetClusterId ( ) { "<AssertPlaceHolder>" ; } getClusterId ( ) { return clusterId ; }
org . junit . Assert . assertEquals ( clusterId , monitor . getClusterId ( ) )
getDbclientAfterCloseThrows ( ) { com . google . cloud . spanner . SpannerImpl imp = new com . google . cloud . spanner . SpannerImpl ( rpc , 1 , spannerOptions ) ; java . util . Map < java . lang . String , java . lang . String > labels = new java . util . HashMap ( ) ; labels . put ( "env" , "dev" ) ; org . mockito ....
org . junit . Assert . assertThat ( e . getMessage ( ) )
testForCorrectSeparatorBytes2 ( ) { java . lang . Object [ ] o1 = new java . lang . Object [ ] { "a" , "b" } ; java . lang . Object [ ] o2 = new java . lang . Object [ ] { "c" , "d" , "e" } ; org . apache . phoenix . schema . types . PDataType type = org . apache . phoenix . schema . types . PVarcharArray . INSTANCE ; ...
org . junit . Assert . assertArrayEquals ( expected , ptr . get ( ) )
testAofClose ( ) { com . moilioncircle . redis . replicator . Replicator r = new com . moilioncircle . redis . replicator . RedisReplicator ( com . moilioncircle . redis . replicator . CloseTest . class . getClassLoader ( ) . getResourceAsStream ( "appendonly5.aof" ) , FileType . AOF , com . moilioncircle . redis . rep...
org . junit . Assert . assertEquals ( 30 , acc . get ( ) )
findByExampleShouldReturnEmptyListIfNotMatching ( ) { org . springframework . data . mongodb . core . QueryByExampleTests . Person sample = new org . springframework . data . mongodb . core . QueryByExampleTests . Person ( ) ; sample . firstname = "jon" ; sample . firstname = "stark" ; org . springframework . data . mo...
org . junit . Assert . assertThat ( result , is ( empty ( ) ) )
testUUIDPrimaryKeyV1 ( ) { log . info ( "...<sp>testUUIDPrimaryKeyV1<sp>..." ) ; javax . persistence . EntityManager em = emf . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; org . thoughts . on . java . model . Book b = new org . thoughts . on . java . model . Book ( ) ; b . setTitle ( "Hibernate<sp>T...
org . junit . Assert . assertEquals ( uuid , b . getId ( ) )
appendMockChecking_A$StringBuilder$int_depth0 ( ) { java . lang . StringBuilder buf = new java . lang . StringBuilder ( ) ; int depth = 0 ; generator . appendMockChecking ( buf , depth ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . name ; }
org . junit . Assert . assertEquals ( "" , buf . toString ( ) )
removeRowThroughContainer_nonexistingRowId_shouldFail ( ) { com . vaadin . v7 . data . util . sqlcontainer . query . TableQuery tQuery = new com . vaadin . v7 . data . util . sqlcontainer . query . TableQuery ( "people" , connectionPool , com . vaadin . v7 . data . util . sqlcontainer . SQLTestsConstants . sqlGen ) ; c...
org . junit . Assert . assertFalse ( container . removeItem ( "foo" ) )
instanceStatusStats ( ) { populateInstance ( false ) ; java . lang . String statusRequest = "instance:stats" ; org . apache . nifi . minifi . commons . status . FlowStatusReport actual = org . apache . nifi . minifi . status . StatusConfigReporter . getStatus ( mockFlowController , statusRequest , org . slf4j . LoggerF...
org . junit . Assert . assertEquals ( expected , actual )
testStream ( ) { java . util . List < com . vladmihalcea . book . hpjp . hibernate . fetching . PostgreSQLScrollableResultsStreamingTest . Post > posts = doInJPA ( ( entityManager ) -> { try ( Stream < com . vladmihalcea . book . hpjp . hibernate . fetching . Post > postStream = entityManager . createQuery ( ( "select<...
org . junit . Assert . assertEquals ( 50 , posts . size ( ) )
testSetTechnicalProductDistinguishedNameNull ( ) { container . login ( "1" , org . oscm . operatorservice . bean . ROLE_PLATFORM_OPERATOR ) ; callerRolles . add ( OrganizationRoleType . PLATFORM_OPERATOR ) ; dataManager_getReferenceByBusinessKey_return . push ( organization ) ; operatorService . setDistinguishedName ( ...
org . junit . Assert . assertEquals ( null , organization . getDistinguishedName ( ) )
nullConstructor ( ) { "<AssertPlaceHolder>" ; } asDirectObject ( org . sejda . sambox . cos . COSObjectable ) { return new org . sejda . sambox . cos . DirectCOSObject ( java . util . Optional . ofNullable ( wrapped ) . orElse ( COSNull . NULL ) . getCOSObject ( ) ) ; }
org . junit . Assert . assertEquals ( COSNull . NULL , org . sejda . sambox . cos . DirectCOSObject . asDirectObject ( null ) . getCOSObject ( ) )
testSizeCanStoreLong ( ) { double confidence = 0.999 ; double epsilon = 1.0E-4 ; int seed = 1 ; com . clearspring . analytics . stream . frequency . CountMinSketch sketch = new com . clearspring . analytics . stream . frequency . CountMinSketch ( epsilon , confidence , seed ) ; long freq1 = Integer . MAX_VALUE ; long f...
org . junit . Assert . assertEquals ( expectedSize , newSketch . size ( ) )
testInsert ( ) { es . ieci . tecdoc . fwktd . sql . node . statement . insert . Insert insert = new es . ieci . tecdoc . fwktd . sql . node . statement . insert . Insert ( ) ; es . ieci . tecdoc . fwktd . sql . node . schema . Table table = new es . ieci . tecdoc . fwktd . sql . node . schema . Table ( ) ; table . setN...
org . junit . Assert . assertNotNull ( insert . getSqlString ( ) )
shouldReturnSameHashCodeForEqualButDifferentEntityMatchResults ( ) { edu . stanford . bmir . protege . web . shared . search . EntityNameMatchResult resultA = edu . stanford . bmir . protege . web . shared . search . EntityNameMatchResult . get ( 1 , 2 , EntityNameMatchType . SUB_STRING_MATCH , PrefixNameMatchType . NO...
org . junit . Assert . assertEquals ( resultA . hashCode ( ) , resultB . hashCode ( ) )
testGetTotalHits ( ) { final int expResult = 5 ; final int result = errorPageCache . getTotalHits ( ) ; "<AssertPlaceHolder>" ; } getTotalHits ( ) { int hits = 0 ; for ( final com . adobe . acs . commons . errorpagehandler . cache . impl . CacheEntry entry : this . cache . values ( ) ) { hits = hits + ( entry . getHits...
org . junit . Assert . assertEquals ( expResult , result )
testFastSet ( ) { org . redisson . api . RListRx < java . lang . Integer > list = redisson . getList ( "list" ) ; sync ( list . add ( 1 ) ) ; sync ( list . add ( 2 ) ) ; sync ( list . fastSet ( 0 , 3 ) ) ; "<AssertPlaceHolder>" ; } sync ( org . redisson . api . RScoredSortedSetReactive ) { return org . redisson . BaseR...
org . junit . Assert . assertEquals ( 3 , ( ( int ) ( sync ( list . get ( 0 ) ) ) ) )
testReplaceConnectionNameInJavaCode ( ) { java . lang . String testString = "\tSystem.out.println(\"=====\");\n\tout.a<sp>=<sp>b;\n\tout<sp>=<sp>obj1;\n\tout.a.out<sp>=<sp>obj2;\n\tout.out<sp>=<sp>obj3;\n\tout(obj1);\n\ta.out.b.out.c.out<sp>=<sp>1;\n\tout.a.out.b.out.c.out();\n" ; java . lang . String expectRetValue = ...
org . junit . Assert . assertTrue ( expectRetValue . equals ( retValue ) )
testDestroyBusinessObjectData ( ) { org . finra . herd . model . api . xml . BusinessObjectDataKey businessObjectDataKey = new org . finra . herd . model . api . xml . BusinessObjectDataKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , PARTITION_VALUE , SUBPARTITION_VALUES ...
org . junit . Assert . assertEquals ( businessObjectData , result )
testNiFiPropertyRegistrationChangeInfo_Case_2 ( ) { com . thinkbiganalytics . nifi . rest . model . NifiProperty latestPropertyFromNifi = new com . thinkbiganalytics . nifi . rest . model . NifiProperty ( ) ; com . thinkbiganalytics . nifi . rest . model . NifiProperty registeredPropertyInKylo = new com . thinkbiganaly...
org . junit . Assert . assertEquals ( "one<sp>first" , latestPropertyFromNifi . getValue ( ) )
shouldBeEqualOnSameElementWithDifferentPropertyWhenNoGroupBys ( ) { final uk . gov . gchq . gaffer . data . element . Entity testEntity1 = new uk . gov . gchq . gaffer . data . element . Entity . Builder ( ) . group ( TestGroups . ENTITY_3 ) . vertex ( "vertex" ) . property ( TestPropertyNames . SET , uk . gov . gchq ....
org . junit . Assert . assertTrue ( elementJoinComparator . test ( testEntity1 , testEntity2 ) )
testGetValue ( ) { System . out . println ( "getValue" ) ; kg . apc . charting . elements . GraphPanelChartSimpleElement instance = new kg . apc . charting . elements . GraphPanelChartSimpleElement ( ) ; instance . add ( 1 ) ; instance . add ( 2 ) ; double expResult = 2.0 ; double result = instance . getValue ( ) ; "<A...
org . junit . Assert . assertEquals ( expResult , result , 0.0 )
shouldRejectTimeoutOverValue ( ) { lb . setTimeout ( 150 ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( lb , org . openstack . atlas . api . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultList . isEmp...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
testSubTypeOfObject ( ) { org . onosproject . net . resource . ContinuousResource continuous = org . onosproject . net . resource . Resources . continuous ( org . onosproject . net . resource . ContinuousResourceTest . D1 , org . onosproject . net . resource . ContinuousResourceTest . P1 , org . onlab . util . Bandwidt...
org . junit . Assert . assertThat ( continuous . isSubTypeOf ( java . lang . Object . class ) , org . hamcrest . Matchers . is ( true ) )
shouldReturnNull ( ) { io . sundr . it . Default item = new io . sundr . it . DefaultBuilder ( ) . build ( ) ; "<AssertPlaceHolder>" ; } getMap ( ) { return this . map ; }
org . junit . Assert . assertNull ( item . getMap ( ) )
testIsBindableWhenTableIsAnExtendedEntryAndConstraintValueIsTypePredicate ( ) { doReturn ( BaseSingleFieldConstraint . TYPE_PREDICATE ) . when ( plugin ) . constraintValue ( ) ; doReturn ( GuidedDecisionTable52 . TableFormat . EXTENDED_ENTRY ) . when ( model ) . getTableFormat ( ) ; "<AssertPlaceHolder>" ; } isBindable...
org . junit . Assert . assertFalse ( plugin . isBindable ( ) )
findAll ( ) { org . linagora . linshare . service . SharedSpaceNodeServiceImplTest . logger . info ( LinShareTestConstants . BEGIN_TEST ) ; java . util . List < org . linagora . linshare . mongo . entities . SharedSpaceNode > foundNodes = service . findAll ( root , root ) ; org . linagora . linshare . mongo . entities ...
org . junit . Assert . assertEquals ( ( ( foundNodes . size ( ) ) + 1 ) , service . findAll ( root , root ) . size ( ) )
testCreate ( ) { org . oscarehr . common . model . MeasurementGroup entity = new org . oscarehr . common . model . MeasurementGroup ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this ...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
testToString ( ) { final java . lang . String wresult = testTokens . get ( "goodToken" ) ; final org . opensaml . saml1 . core . Assertion assertion = net . unicon . cas . support . wsfederation . WsFederationUtils . parseTokenFromString ( wresult ) ; final net . unicon . cas . support . wsfederation . authentication ....
org . junit . Assert . assertEquals ( "<sp>Group:<sp>example.com\\Domain<sp>Users\n" 4 , expResult , result )
testOverwrite ( ) { buildRule . executeTarget ( "testoverwrite" ) ; java . io . File file2 = new java . io . File ( buildRule . getProject ( ) . getBaseDir ( ) , org . apache . tools . ant . taskdefs . ConcatTest . tempFile2 ) ; long size = file2 . length ( ) ; "<AssertPlaceHolder>" ; } length ( ) { return line . lengt...
org . junit . Assert . assertTrue ( ( size > 0 ) )
testGetUsersByLogin ( ) { java . lang . String login1 = "uuser@ippon.fr" ; java . lang . String login2 = "jdubois@ippon.fr" ; java . util . Collection < java . lang . String > logins = new java . util . ArrayList < java . lang . String > ( ) ; logins . add ( login1 ) ; logins . add ( login2 ) ; mockAuthenticationOnUser...
org . junit . Assert . assertEquals ( 2 , users . size ( ) )
increaseNo ( ) { wsattacker . library . intelligentdos . helper . IterateModel iterateModel = wsattacker . library . intelligentdos . helper . IterateModel . custom ( ) . startAt ( 8 ) . stopAt ( 32 ) . setIncrement ( 2 ) . setIncreaseIncrementStrategie ( IncreaseIncrementStrategie . NO ) . build ( ) ; iterateModel . i...
org . junit . Assert . assertThat ( iterateModel . getIncrement ( ) , org . hamcrest . Matchers . is ( 2 ) )
testClusters ( ) { javax . ws . rs . core . Response r = request ( oracle . kubernetes . operator . rest . RestTest . DOMAIN1_CLUSTERS_HREF ) . get ( ) ; verifyOK ( r ) ; oracle . kubernetes . operator . rest . model . CollectionModel < oracle . kubernetes . operator . rest . model . ClusterModel > want = new oracle . ...
org . junit . Assert . assertEquals ( have . toString ( ) , want . toString ( ) )
testNan ( ) { org . apache . commons . numbers . complex . Complex c = org . apache . commons . numbers . complex . Complex . ofCartesian ( Double . NaN , Double . NaN ) ; java . lang . String expected = "(NaN)<sp>+<sp>(NaN)i" ; java . lang . String actual = complexFormat . format ( c ) ; "<AssertPlaceHolder>" ; } form...
org . junit . Assert . assertEquals ( expected , actual )
testFlatAB ( ) { org . antlr . test . TreeAdaptor adaptor = new org . antlr . test . CommonTreeAdaptor ( ) ; org . antlr . test . TreeWizard wiz = new org . antlr . test . TreeWizard ( adaptor , org . antlr . test . TestTreeIterator . tokens ) ; org . antlr . test . CommonTree t = ( ( org . antlr . test . CommonTree ) ...
org . junit . Assert . assertEquals ( expecting , found )
testFindCurrent ( ) { java . lang . String status1 = "ACTIVE" ; java . lang . String status2 = "NOTACTIVE" ; org . oscarehr . PMmodule . model . Vacancy vacancy1 = new org . oscarehr . PMmodule . model . Vacancy ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( vacancy1...
org . junit . Assert . assertTrue ( true )
testIncompleteData1 ( ) { java . io . InputStream inputStream = new java . io . ByteArrayInputStream ( io . kubernetes . client . ExecTest . BAD_OUTPUT_INCOMPLETE_MSG1 . getBytes ( StandardCharsets . UTF_8 ) ) ; int exitCode = io . kubernetes . client . Exec . parseExitCode ( client , inputStream ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( ( - 1 ) , exitCode )
testCreateGroupSupervisor ( ) { final org . bonitasoft . engine . identity . model . SGroup group = createSGroup ( "group1" ) ; final org . bonitasoft . engine . supervisor . mapping . model . SProcessSupervisor createdSupervisor = createGroupSupervisors ( java . util . Collections . singletonList ( group ) ) . get ( 0...
org . junit . Assert . assertEquals ( createdSupervisor , gotSupervisor )
testFindNextElement_Forward_NotFound ( ) { java . lang . String searchString = "FindMex" ; provider . setParameter ( IFindReplaceProvider . PARAM_FORWARD , true ) ; provider . setParameter ( IFindReplaceProvider . PARAM_CASE_SENSITIVE , false ) ; provider . setParameter ( IFindReplaceProvider . PARAM_ALL_MODELS , true ...
org . junit . Assert . assertNull ( provider . findNextElement ( null , searchString ) )
instantiation ( ) { org . junithelper . core . filter . impl . TrimInsideOfStringFilter target = new org . junithelper . core . filter . impl . TrimInsideOfStringFilter ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( target )
whenCheckingForEmptyHashSet_shouldCheckForEmpty ( ) { java . util . Set < java . lang . String > emptyHashSet = new java . util . HashSet ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( total ) == 0 ; }
org . junit . Assert . assertTrue ( emptyHashSet . isEmpty ( ) )
should_sort_with_english_locale ( ) { final java . util . List < java . lang . String > stringsToSort = asList ( "HD<sp>20GB" , "HD<sp>2GB" ) ; stringsToSort . sort ( new se . sawano . java . text . AlphanumericComparator ( java . util . Locale . ENGLISH ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( asList ( "HD<sp>2GB" , "HD<sp>20GB" ) , stringsToSort )
testEmpty ( ) { com . blade . Environment environment = com . blade . Environment . empty ( ) ; "<AssertPlaceHolder>" ; } toMap ( ) { lombok . var map = new com . blade . HashMap < java . lang . String , java . lang . String > ( props . size ( ) ) ; props . forEach ( ( k , v ) -> map . put ( k . toString ( ) , v . toSt...
org . junit . Assert . assertEquals ( 0 , environment . toMap ( ) . size ( ) )
testAddString007 ( ) { java . util . LinkedList ll = new java . util . LinkedList ( ) ; ll . add ( new javax . naming . ldap . Rdn ( "t=test" ) ) ; javax . naming . ldap . LdapName ln = new javax . naming . ldap . LdapName ( ll ) ; ln . add ( "t1=test1" ) ; ll . remove ( 0 ) ; "<AssertPlaceHolder>" ; } size ( ) { throw...
org . junit . Assert . assertEquals ( 2 , ln . size ( ) )
shouldBeAbleToInjectBaseContext ( ) { org . mockito . Mockito . when ( resourceProvider . lookup ( ( ( org . jboss . arquillian . test . api . ArquillianResource ) ( org . mockito . Mockito . any ( ) ) ) , org . mockito . Mockito . argThat ( new org . jboss . arquillian . test . impl . enricher . resource . ArquillianR...
org . junit . Assert . assertEquals ( resource , test . resource )
putMapKeyValue ( ) { org . apache . isis . schema . utils . CommonDtoUtils . putMapKeyValue ( null , "someKey" , "someValue" ) ; final org . apache . isis . schema . cmd . v1 . MapDto mapDto = new org . apache . isis . schema . cmd . v1 . MapDto ( ) ; org . apache . isis . schema . utils . CommonDtoUtils . putMapKeyVal...
org . junit . Assert . assertThat ( org . apache . isis . schema . utils . CommonDtoUtils . getMapValue ( mapDto , "someKey" ) , org . hamcrest . CoreMatchers . is ( "someValue" ) )
manageOperations_VSERVERS_STOPPING_CombinedVServerStateNotNormal ( ) { paramHandler . getIaasContext ( ) . setVSystemStatus ( org . oscm . app . iaas . VSystemProcessorBeanTest . NORMAL ) ; org . oscm . app . iaas . data . FlowState newState = vSystemProcessor . manageOperations ( org . oscm . app . iaas . VSystemProce...
org . junit . Assert . assertNull ( newState )
testLimitNodeNameLength_AlreadyWithinLimit ( ) { java . lang . String nodeName = "within_limit" ; "<AssertPlaceHolder>" ; } limitNodeNameLength ( java . lang . String ) { if ( ( nodeName . length ( ) ) <= ( org . apache . crunch . impl . mr . plan . DotfileWriter . MAX_NODE_NAME_LENGTH ) ) { return nodeName ; } java . ...
org . junit . Assert . assertEquals ( nodeName , org . apache . crunch . impl . mr . plan . DotfileWriter . limitNodeNameLength ( nodeName ) )
testSCASubGenericsServiceDoIt ( ) { @ org . apache . tuscany . sca . itest . services . SuppressWarnings ( "unchecked" ) org . apache . tuscany . sca . itest . services . SubGenericsServiceClient < java . lang . String > subGenericsServiceClient = org . apache . tuscany . sca . itest . services . ServicesTestCase . nod...
org . junit . Assert . assertEquals ( actual , expected )
shouldRejectWhenNodesIsNotEmpty ( ) { lb . getNodes ( ) . add ( new org . openstack . atlas . api . validation . validators . Node ( ) ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( lb , org . openstack . atlas . api . validation . validators . PUT ) ; "<Asser...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )