input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
credentialsAreAddedInSessionCreation ( ) { java . util . Map < java . lang . String , java . lang . Object > requestedCapability = new java . util . HashMap ( ) ; requestedCapability . put ( CapabilityType . BROWSER_NAME , BrowserType . IE ) ; requestedCapability . put ( CapabilityType . PLATFORM_NAME , Platform . WIN8...
org . junit . Assert . assertNotNull ( testSession )
testEmptyLhex ( ) { java . lang . String header = "Digest<sp>nc=" ; java . io . StringReader input = new java . io . StringReader ( header ) ; java . util . Map < java . lang . String , java . lang . String > result = org . apache . tomcat . util . http . parser . Authorization . parseAuthorizationDigest ( input ) ; "<...
org . junit . Assert . assertNull ( result )
testImportTemplateFileSameDir ( ) { java . lang . String dir = getRandomDir ( ) ; java . lang . String groupFile = "import<sp>\"c.st\"\n" + ( "a()<sp>::=<sp>\"g1<sp>a\"\n" + "b()<sp>::=<sp>\"<c()>\"\n" ) ; writeFile ( dir , "group1.stg" , groupFile ) ; writeFile ( dir , "c.st" , "c()<sp>::=<sp>\"c\"\n" ) ; org . string...
org . junit . Assert . assertEquals ( expected , result )
canLintWithBom ( ) { com . googlecode . jslint4java . UnicodeBomInputStream is2 = new com . googlecode . jslint4java . UnicodeBomInputStream ( getBomJs ( ) ) ; is2 . skipBOM ( ) ; java . io . InputStreamReader isr = new java . io . InputStreamReader ( is2 , com . google . common . base . Charsets . UTF_8 ) ; com . goog...
org . junit . Assert . assertThat ( result . getIssues ( ) , org . hamcrest . Matchers . empty ( ) )
testEnterNoLeaveExpire ( ) { analyzer = new org . apache . activemq . artemis . utils . critical . CriticalAnalyzerImpl ( ) . setTimeout ( 10 , TimeUnit . MILLISECONDS ) . setCheckTime ( 5 , TimeUnit . MILLISECONDS ) ; org . apache . activemq . artemis . utils . critical . CriticalComponent component = new org . apache...
org . junit . Assert . assertTrue ( component . isExpired ( 0 ) )
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . publicactivity . PublicActivityType entity = new org . lnu . is . domain . publicactivity . PublicActivityType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . ut...
org . junit . Assert . assertEquals ( expected , actual )
testProcessMessageStatus ( ) { context . checking ( new org . jmock . Expectations ( ) { { exactly ( 1 ) . of ( mockDao ) . save ( with ( any ( gov . hhs . fha . nhinc . asyncmsgs . model . AsyncMsgRecord . class ) ) ) ; exactly ( 1 ) . of ( mockDao ) . queryByMessageIdAndDirection ( with ( any ( java . lang . String ....
org . junit . Assert . assertTrue ( result )
testEncodingPreAuthenticationData ( ) { org . apache . directory . shared . kerberos . components . PaData pad = new org . apache . directory . shared . kerberos . components . PaData ( org . apache . directory . shared . kerberos . codec . types . PaDataType . PA_ASF3_SALT , new byte [ ] { 1 , 2 , 3 } ) ; java . nio ....
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expectedResult , encoded . array ( ) ) )
loadRetursnNullWhenPatientDoesNotHaveImageObjects ( ) { when ( this . doc . getXObjects ( AdditionalImagesController . CLASS_REFERENCE ) ) . thenReturn ( null ) ; org . phenotips . data . PatientData < org . phenotips . data . internal . controller . Attachment > result = this . mocker . getComponentUnderTest ( ) . loa...
org . junit . Assert . assertNull ( result )
testContainmentReduceTypeVsType ( ) { java . util . List < net . sourceforge . pmd . lang . java . typeresolution . typeinference . BoundOrConstraint > result = new net . sourceforge . pmd . lang . java . typeresolution . typeinference . Constraint ( number , integer , CONTAINS ) . reduce ( ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
MergerWithMultipleAssertionsDoesNotPreserveOverlappingBroadcasts ( ) { org . atlasapi . query . content . merge . BroadcastMerger merger = org . atlasapi . query . content . merge . BroadcastMerger . parse ( ( "" + ( ( "\"channelUri\"|\"2016-01-05T00:00:00Z\"|\"2016-01-06T00:00:00Z\"," + "\"channelUri\"|\"2016-02-06T12...
org . junit . Assert . assertThat ( merge . isEmpty ( ) , org . hamcrest . core . Is . is ( true ) )
testReadFullyPartial ( ) { java . lang . String myMessage = "{this<sp>is<sp>my<sp>message}" ; byte [ ] bytes = myMessage . getBytes ( Charsets . UTF_8 ) ; com . twitter . hbc . common . InputStream stream = new com . twitter . hbc . common . ByteArrayInputStream ( bytes ) ; com . twitter . hbc . common . Reader reader ...
org . junit . Assert . assertEquals ( partialBuffer [ i ] , myMessage . charAt ( i ) )
sendRequestExchangeRate ( ) { receiveATransactionAmount ( wallet , myAddress , com . matthewmitchell . peercoinj . core . COIN . add ( com . matthewmitchell . peercoinj . core . CENT ) ) ; com . matthewmitchell . peercoinj . core . Wallet . SendRequest sendRequest = com . matthewmitchell . peercoinj . core . Wallet . S...
org . junit . Assert . assertEquals ( sendRequest . exchangeRate , sendRequest . tx . getExchangeRate ( ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . workflow . kaleo . model . KaleoTimerInstanceToken newKaleoTimerInstanceToken = addKaleoTimerInstanceToken ( ) ; com . liferay . portal . workflow . kaleo . model . KaleoTimerInstanceToken existingKaleoTimerInstanceToken = _persistence . findByPrimaryKey ( new...
org . junit . Assert . assertEquals ( existingKaleoTimerInstanceToken , newKaleoTimerInstanceToken )
validatePaymentTypeSupportedBySupplier_CustomerSpecific ( ) { "<AssertPlaceHolder>" ; org . oscm . validation . PaymentDataValidator . validatePaymentTypeSupportedBySupplier ( customer , product_invoice_customer , invoice ) ; } isPaymentTypeSupportedBySupplier ( org . oscm . domobjects . Organization , org . oscm . dom...
org . junit . Assert . assertTrue ( org . oscm . validation . PaymentDataValidator . isPaymentTypeSupportedBySupplier ( customer , product_invoice_customer , invoice ) )
testPartitionedVertexFilteredScan ( ) { tearDown ( ) ; clearGraph ( getConfiguration ( ) ) ; com . thinkaurelius . titan . hadoop . WriteConfiguration partConf = getConfiguration ( ) ; open ( partConf ) ; mgmt . makeVertexLabel ( "part" ) . partition ( ) . make ( ) ; finishSchema ( ) ; com . thinkaurelius . titan . cor...
org . junit . Assert . assertTrue ( job . waitForCompletion ( true ) )
testGetContent_txt ( ) { java . lang . String content = "test${name}" ; writeString2File ( content , ( ( ( ( cn . bc . docs . domain . Attach . DATA_REAL_PATH ) + "/" ) + ( cn . bc . template . domain . Template . DATA_SUB_PATH ) ) + "/test.txt" ) ) ; cn . bc . template . domain . Template t = createInstance ( null ) ;...
org . junit . Assert . assertEquals ( content , this . templateService . getContent ( t . getCode ( ) ) )
testGoodCertificate ( ) { java . security . KeyStore clientStore = java . security . KeyStore . getInstance ( "JCEKS" ) ; java . io . InputStream cis = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "ocsp.db" ) ; clientStore . load ( cis , org . kaazing . gateway . transport . ssl . OcspIT . password ) ; cis...
org . junit . Assert . assertEquals ( expected , got )
testShortMessageIsNotChunked ( ) { final java . util . List < com . google . gson . JsonObject > list = new java . util . ArrayList ( 3 ) ; list . add ( org . hibernate . search . elasticsearch . test . GsonStreamedEncodingTest . buildEmptyJSON ( ) ) ; list . add ( org . hibernate . search . elasticsearch . test . Gson...
org . junit . Assert . assertEquals ( traditionalEncoding . length , entity . getContentLength ( ) )
testTimeType ( ) { java . time . OffsetTime time = org . neo4j . values . storable . TimeValue . time ( 23 , 11 , 8 , 0 , "+17:59" ) . asObjectCopy ( ) ; java . lang . String key = "dt" ; node1 . setProperty ( key , time ) ; newTransaction ( ) ; java . lang . Object property = node1 . getProperty ( key ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( time , property )
testOverlapsAtLastPartitions ( ) { java . util . Map < java . lang . Integer , java . lang . Integer > numberTimesPartitionSeen = new java . util . TreeMap ( ) ; datawave . ingest . mapreduce . partition . MultiTableRRRangePartitioner partitioner = createPartitionerFromSplits ( ) ; int numPartitions = 10 ; countPartiti...
org . junit . Assert . assertTrue ( partitionAndNumSeen . toString ( ) , ( previousCount <= currentCount ) )
testFindWithPathNotMatchingSubelement ( ) { final com . allanbank . mongodb . bson . element . BooleanElement subElement = new com . allanbank . mongodb . bson . element . BooleanElement ( "1" , false ) ; final com . allanbank . mongodb . bson . impl . ImmutableDocument element = new com . allanbank . mongodb . bson . ...
org . junit . Assert . assertEquals ( 0 , elements . size ( ) )
testArrays ( ) { java . util . Map < java . lang . String , org . ff4j . core . Feature > features = ff4j . getFeatures ( ) ; int idx = 0 ; org . ff4j . core . Feature [ ] f = new org . ff4j . core . Feature [ features . size ( ) ] ; for ( java . lang . String feature : features . keySet ( ) ) { f [ idx ] = features . ...
org . junit . Assert . assertEquals ( ff4j . getFeatures ( ) . size ( ) , ff . length )
testListaAlumnoDescuentos ( ) { log . debug ( "Debiera<sp>mostrar<sp>lista<sp>de<sp>Descuentos<sp>de<sp>alumnos" ) ; mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . general . model . Organizacion organizacion = usuario . getEmpresa ( ) . getOrganizacion ( ) ; mx ...
org . junit . Assert . assertNotNull ( alumnoDescuento . getId ( ) )
testSetDimension ( ) { edu . illinois . library . cantaloupe . image . Dimension size = new edu . illinois . library . cantaloupe . image . Dimension ( 50 , 40 ) ; instance . setDimension ( size ) ; "<AssertPlaceHolder>" ; } size ( ) { return pairs . size ( ) ; }
org . junit . Assert . assertEquals ( size , instance . size ( ) )
addClassifierEmptyClassifier ( ) { org . opendaylight . sfc . scfofrenderer . processors . OpenflowClassifierProcessor classifierManager = new org . opendaylight . sfc . scfofrenderer . processors . OpenflowClassifierProcessor ( readWriteTransaction , new org . opendaylight . sfc . scfofrenderer . flowgenerators . Logi...
org . junit . Assert . assertTrue ( theFlows . isEmpty ( ) )
testGetId ( ) { org . apache . ambari . server . state . ComponentInfo info = new org . apache . ambari . server . state . ComponentInfo ( ) ; info . setName ( "foo" ) ; org . apache . ambari . server . stack . ComponentModule component = new org . apache . ambari . server . stack . ComponentModule ( info ) ; "<AssertP...
org . junit . Assert . assertEquals ( "foo" , component . getId ( ) )
testVoerRegelUitMetNietIngeschrevene ( ) { final nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht nieuweSituatie = maakFamilierechtelijkeBetrekkingBerichtMetNietIngeschrevene ( ) ; final java . util . Map < java . lang . String , nl . bzk . brp . model . hisvolledig . momentview . kern . Pe...
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
testGevonden ( ) { final nl . bzk . brp . gba . domain . bevraging . Adresantwoord antwoord = new nl . bzk . brp . gba . domain . bevraging . Adresantwoord ( ) ; antwoord . setInhoud ( "00000000Xa01000270101701100101234567890" ) ; org . mockito . Mockito . when ( message . getText ( ) ) . thenReturn ( nl . bzk . algeme...
org . junit . Assert . assertEquals ( "00000000Xa01000270101701100101234567890" , bericht . getInhoud ( ) )
testHashMapPutAllIsNotAllowed ( ) { "<AssertPlaceHolder>" ; Characteristics . CDI . putAll ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) ) ; } toString ( ) { return ( ( ( "BuilderNode:<sp>" + ( this . getClass ( ) . getName ( ) ) ) + "<sp>(\"" ) + ( getNodeName ( ) ) ) + "\")" ; }
org . junit . Assert . assertNotNull ( Characteristics . CDI . toString ( ) )
testGetSchemaWithException ( ) { org . talend . components . jdbc . tjdbcinput . TJDBCInputDefinition definition = new org . talend . components . jdbc . tjdbcinput . TJDBCInputDefinition ( ) ; org . talend . components . jdbc . tjdbcinput . TJDBCInputProperties properties = org . talend . components . jdbc . common . ...
org . junit . Assert . assertTrue ( message . contains ( "notexist" ) )
testCountRecords ( ) { java . util . Random rand = new java . util . Random ( ) ; for ( int j = 0 ; j < 50 ; j ++ ) { for ( int i = 0 ; i < 50 ; i ++ ) { org . alfresco . bm . dataload . rm . services . RecordData record = new org . alfresco . bm . dataload . rm . services . RecordData ( ( ( ( ( "test_id(" + j ) + ")("...
org . junit . Assert . assertEquals ( ( ( j + 1 ) * 50 ) , recordService . getRecordCountInSpecifiedPaths ( ExecutionState . UNFILED_RECORD_DECLARED . name ( ) , null ) )
testIndenter ( ) { new com . googlecode . jatl . Html ( writer ) { { bind ( "name" , "Adam" ) ; html ( ) . head ( ) . indent ( indentSameLine ) . end ( ) . body ( ) . indent ( indentOn ) . h1 ( ) . indent ( indentOff ) . text ( "hello" ) . end ( ) ; div ( ) . indent ( indentOn ) . raw ( "\t</body>\n" 0 , true ) . end (...
org . junit . Assert . assertEquals ( expected , result )
test33getPolicyForVersionNumber ( ) { org . apache . ranger . plugin . model . RangerPolicy rangerPolicy = rangerPolicy ( ) ; org . mockito . Mockito . when ( svcStore . getPolicyForVersionNumber ( org . apache . ranger . rest . TestServiceREST . Id , 1 ) ) . thenReturn ( rangerPolicy ) ; org . apache . ranger . plugin...
org . junit . Assert . assertNotNull ( dbRangerPolicy )
concurrentAddChild ( ) { org . apache . jackrabbit . oak . api . ContentSession s1 = repository . login ( null , null ) ; try { org . apache . jackrabbit . oak . api . Root r1 = s1 . getLatestRoot ( ) ; org . apache . jackrabbit . oak . api . Tree t1 = r1 . getTree ( "/" ) ; t1 . addChild ( "node1" ) ; t1 . addChild ( ...
org . junit . Assert . assertEquals ( com . google . common . collect . Sets . newHashSet ( "node1" , "node2" , "node3" , "node4" , "node5" ) , names )
consumerDoesntSupportRam ( ) { java . lang . String expected = "Unit<sp>does<sp>not<sp>support<sp>RAM<sp>calculation<sp>required<sp>by<sp>pool<sp>\"pool10\"" ; try { bindByPoolErrorTest ( "rulefailed.ram.unsupported.by.consumer" ) ; org . junit . Assert . fail ( ) ; } catch ( org . candlepin . common . exceptions . For...
org . junit . Assert . assertEquals ( expected , e . getMessage ( ) )
test14grantAccess ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; java . lang . String serviceName = "HDFS_1" ; org . apache . ranger . plugin . util . GrantRevokeRequest grantRequestObj = new org . apache . ranger . pl...
org . junit . Assert . assertNotNull ( restResponse )
testContainsBitmapContainer_IncludeSelf ( ) { org . roaringbitmap . Container bc = new org . roaringbitmap . BitmapContainer ( ) . add ( 0 , 10 ) ; org . roaringbitmap . Container subset = new org . roaringbitmap . BitmapContainer ( ) . add ( 0 , 10 ) ; "<AssertPlaceHolder>" ; } contains ( int ) { throw new java . lang...
org . junit . Assert . assertTrue ( bc . contains ( subset ) )
shouldCreateTopicWhenItDoesNotExist ( ) { org . apache . kafka . clients . admin . NewTopic newTopic = org . apache . kafka . connect . util . TopicAdmin . defineTopic ( "myTopic" ) . partitions ( 1 ) . compacted ( ) . build ( ) ; org . apache . kafka . common . Cluster cluster = createCluster ( 1 ) ; try ( org . apach...
org . junit . Assert . assertTrue ( admin . createTopic ( newTopic ) )
testHaltSuperstep0 ( ) { org . apache . giraph . conf . GiraphConfiguration conf = new org . apache . giraph . conf . GiraphConfiguration ( ) ; GiraphConstants . MAX_NUMBER_OF_SUPERSTEPS . set ( conf , 0 ) ; conf . setComputationClass ( org . apache . giraph . examples . SimpleMsgComputation . class ) ; conf . setVerte...
org . junit . Assert . assertTrue ( job . run ( true ) )
testTag2 ( ) { java . lang . String patternStr = ".<sp>saw_w<sp>." ; java . util . List < java . lang . String > result = extract ( patternStr , "she<sp>saw<sp>sea<sp>shells<sp>by<sp>the<sp>sea<sp>thing" ) ; java . util . List < java . lang . String > expected = edu . washington . cs . knowitall . sequence . RegexTagge...
org . junit . Assert . assertEquals ( expected , result )
testOspChargeDoubleB ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = builder . newInstance ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; molecule . addAtom ( builder . newInstance ( org . openscience . cdk . interfaces . IAtom . class , "O" ) ) ; molecule . getAtom ( 0 ) . s...
org . junit . Assert . assertEquals ( 0 , setOfReactions . getReactionCount ( ) )
plausibleRelationShouldNotBeSuspectTest ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity master = ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceFactory . createNewResource ( "master" ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity ...
org . junit . Assert . assertFalse ( service . isSuspectRelation ( pRelation ) )
singleton ( ) { org . apache . isis . core . runtime . services . ServiceInstantiatorTest . SingletonCalculator calculator = serviceInstantiator . createInstance ( org . apache . isis . core . runtime . services . ServiceInstantiatorTest . SingletonCalculator . class ) ; "<AssertPlaceHolder>" ; } add ( java . lang . St...
org . junit . Assert . assertThat ( calculator . add ( 3 , 4 ) , org . hamcrest . CoreMatchers . is ( 7 ) )
byOwner ( ) { org . candlepin . model . Owner o = mock ( org . candlepin . model . Owner . class ) ; when ( o . getId ( ) ) . thenReturn ( "20" ) ; java . util . List < org . candlepin . model . DeletedConsumer > found = dcc . findByOwner ( o ) . list ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return virtUuidToConsumer...
org . junit . Assert . assertEquals ( 1 , found . size ( ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . friendly . url . model . FriendlyURLEntryMapping . class , _dynamicQueryClassLoader ) ; dynamicQuery . se...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testUndefinedAdjustment ( ) { de . rub . nds . tlsattacker . core . protocol . message . extension . MaxFragmentLengthExtensionMessage msg = new de . rub . nds . tlsattacker . core . protocol . message . extension . MaxFragmentLengthExtensionMessage ( ) ; msg . setMaxFragmentLength ( new byte [ ] { 77 } ) ; handler . a...
org . junit . Assert . assertNull ( context . getMaxFragmentLength ( ) )
testInstanciation ( ) { org . orbisgis . coremap . renderer . se . PointSymbolizer as = getPointSymbolizer ( ) ; org . orbisgis . legend . analyzer . symbolizers . PointSymbolizerAnalyzer asa = new org . orbisgis . legend . analyzer . symbolizers . PointSymbolizerAnalyzer ( as ) ; org . orbisgis . legend . thematic . r...
org . junit . Assert . assertTrue ( true )
deveObterChaveComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . cancelamento . NFInfoEventoCancelamento infoEventoCancelamento = new com . fincatto . documentofiscal . nfe310 . classes . evento . cancelamento . NFInfoEventoCancelamento ( ) ; final java . lang . String chave = "815...
org . junit . Assert . assertEquals ( chave , infoEventoCancelamento . getChave ( ) )
testPutBlock ( ) { long testContainerID = getTestContainerID ( ) ; org . apache . hadoop . ozone . container . common . interfaces . Container container = addContainer ( org . apache . hadoop . ozone . container . common . impl . TestContainerPersistence . containerSet , testContainerID ) ; org . apache . hadoop . hdds...
org . junit . Assert . assertEquals ( info . getChecksumData ( ) , readChunk . getChecksumData ( ) )
testNonReceiptNotification ( ) { final javax . jms . TextMessage message = org . mockito . Mockito . mock ( javax . jms . TextMessage . class ) ; org . mockito . Mockito . when ( message . getStringProperty ( JMSConstants . BERICHT_REFERENTIE ) ) . thenReturn ( "message-id-001" ) ; org . mockito . Mockito . when ( mess...
org . junit . Assert . assertEquals ( true , bericht . getRequestNonReceiptNotification ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . message . boards . model . MBThread > mbThreads = _persistence . fetchByPrimaryKeys ( pri...
org . junit . Assert . assertTrue ( mbThreads . isEmpty ( ) )
testRequirements ( ) { org . apache . maven . execution . MavenSession session = mock ( org . apache . maven . execution . MavenSession . class ) ; org . apache . maven . execution . MavenExecutionRequest executionRequest = new org . apache . maven . execution . DefaultMavenExecutionRequest ( ) ; java . util . Map < ja...
org . junit . Assert . assertEquals ( 1 , toolchains . size ( ) )
testEquals ( ) { org . jfree . chart . renderer . category . DefaultCategoryItemRenderer r1 = new org . jfree . chart . renderer . category . DefaultCategoryItemRenderer ( ) ; org . jfree . chart . renderer . category . DefaultCategoryItemRenderer r2 = new org . jfree . chart . renderer . category . DefaultCategoryItem...
org . junit . Assert . assertEquals ( r1 , r2 )
testNSandUnexistentModelName ( ) { final org . kie . dmn . model . api . Import i = makeImport ( "ns1" , null , "boh" ) ; final java . util . List < javax . xml . namespace . QName > available = java . util . Arrays . asList ( new javax . xml . namespace . QName ( "ns1" , "m1" ) , new javax . xml . namespace . QName ( ...
org . junit . Assert . assertTrue ( result . isLeft ( ) )
testEqualsObject ( ) { org . ccnx . ccn . impl . support . Log . info ( Log . FAC_TEST , "Starting<sp>testEqualsObject" ) ; org . ccnx . ccn . protocol . ExcludeTest . ef = org . ccnx . ccn . protocol . Exclude . uptoFactory ( org . ccnx . ccn . protocol . ExcludeTest . b1 ) ; java . util . ArrayList < org . ccnx . ccn...
org . junit . Assert . assertEquals ( org . ccnx . ccn . protocol . ExcludeTest . ef , new org . ccnx . ccn . protocol . Exclude ( a ) )
testIterateStringsFromFile ( ) { java . io . File file = createTempCsv ( "1,2" ) ; org . simpleflatmapper . util . CloseableIterator < java . lang . String [ ] > iterator = org . simpleflatmapper . lightningcsv . CsvParser . iterator ( file ) ; try { "<AssertPlaceHolder>" ; } finally { iterator . close ( ) ; } } next (...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "1" , "2" } , iterator . next ( ) )
uriWithoutPath ( ) { final java . net . URI uri = org . sentilo . common . utils . URIUtils . getURI ( org . sentilo . common . test . utils . URIUtilsTest . HOST , org . sentilo . common . test . utils . URIUtilsTest . EMPTY_PATH ) ; "<AssertPlaceHolder>" ; } toString ( ) { final java . lang . String name = super . to...
org . junit . Assert . assertEquals ( org . sentilo . common . test . utils . URIUtilsTest . HOST , uri . toString ( ) )
map2Test ( ) { final com . navercorp . pinpoint . thrift . dto . flink . TFAgentStat tFAgentStat = new com . navercorp . pinpoint . thrift . dto . flink . TFAgentStat ( ) ; tFAgentStat . setAgentId ( "testAgent" ) ; tFAgentStat . setTimestamp ( 1491274138454L ) ; final com . navercorp . pinpoint . flink . mapper . thri...
org . junit . Assert . assertEquals ( joinCpuLoadBo , joinCpuLoadBo . EMPTY_JOIN_CPU_LOAD_BO )
testLPAAlgorithmNoClient ( ) { java . util . Set < com . sun . sgs . impl . service . nodemap . affinity . RelocatingAffinityGroup > groups = server . findAffinityGroups ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( getHead ( ) . size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( groups . isEmpty ( ) )
testAnonymousAllowed ( ) { boolean allowed = true ; policy . setAnonymousAccessAllowed ( allowed ) ; "<AssertPlaceHolder>" ; } isAnonymousAccessAllowed ( ) { return anonymousAccessAllowed ; }
org . junit . Assert . assertEquals ( allowed , policy . isAnonymousAccessAllowed ( ) )
testExecuteInvalidDestinationType ( ) { org . eurekastreams . server . persistence . mappers . stream . PostCachedActivity sut = new org . eurekastreams . server . persistence . mappers . stream . PostCachedActivity ( personFollowersMapper , getPersonModelViewByAccountIdMapper ) ; sut . setCache ( cache ) ; final org ....
org . junit . Assert . assertTrue ( exceptionFired )
getConfigurationClassTest ( ) { org . kaaproject . kaa . server . verifiers . trustful . verifier . TrustfulUserVerifierTest . verifier = new org . kaaproject . kaa . server . verifiers . trustful . verifier . TrustfulUserVerifier ( ) ; "<AssertPlaceHolder>" ; } getConfigurationClass ( ) { return org . kaaproject . kaa...
org . junit . Assert . assertEquals ( org . kaaproject . kaa . server . verifiers . trustful . verifier . TrustfulUserVerifierTest . verifier . getConfigurationClass ( ) , org . kaaproject . kaa . server . verifiers . trustful . config . gen . TrustfulAvroConfig . class )
testDecimal ( ) { java . math . BigDecimal originalValue = new java . math . BigDecimal ( "36.7147" ) ; java . io . ByteArrayOutputStream os = new java . io . ByteArrayOutputStream ( ) ; com . streamsets . pipeline . api . ext . RecordWriter writer = com . streamsets . datacollector . record . io . RecordWriterReaderFa...
org . junit . Assert . assertEquals ( originalValue , destinationValue )
testAssumeTheType2 ( ) { net . openhft . chronicle . wire . InvalidYamWithCommonMistakesTest . DtoB expected = new net . openhft . chronicle . wire . InvalidYamWithCommonMistakesTest . DtoB ( "hello8" ) ; net . openhft . chronicle . wire . Marshallable actual = net . openhft . chronicle . wire . Marshallable . fromStri...
org . junit . Assert . assertEquals ( expected , actual )
odatarelations_jsonFromTypenull ( ) { final java . lang . String entryName = "bar/90_contents/odatacol1/10_odatarelations.json" ; final java . lang . String filename = "/10_odatarelations_fromtype_notexist.json" ; java . net . URL fileUrl = java . lang . ClassLoader . getSystemResource ( ( ( com . fujitsu . dc . test ....
org . junit . Assert . assertNull ( res )
shouldNotChangeAfterInjectionSupportedNotNullObject ( ) { new java . util . concurrent . Callable < java . lang . Void > ( ) { @ ro . isdc . wro . model . group . Inject private final ro . isdc . wro . model . resource . processor . ResourcePreProcessor inner = new ro . isdc . wro . model . resource . processor . Resou...
org . junit . Assert . assertNotNull ( inner )
test8 ( ) { org . openl . rules . tbasic . TestForEach . TestAlgorithm a = org . openl . rules . TestUtils . create ( "test/rules/tbasic1/FOR_EACH_P1.xls" , org . openl . rules . tbasic . TestForEach . TestAlgorithm . class ) ; java . lang . Integer result = a . calc ( ) ; "<AssertPlaceHolder>" ; } intValue ( ) { retur...
org . junit . Assert . assertEquals ( 0 , result . intValue ( ) )
checkDataAnyConvertationFromStringHtml ( ) { java . util . Properties properties = new java . util . Properties ( ) ; try ( java . io . FileInputStream fileInputStream = new java . io . FileInputStream ( this . getClass ( ) . getClassLoader ( ) . getResource ( "vacancy.properties" ) . getPath ( ) ) ) { properties . loa...
org . junit . Assert . assertThat ( year , org . hamcrest . core . Is . is ( cal . get ( 1 ) ) )
isSimpleToMany_return_true_if_has_one_incoming_and_multiple_outgoing_transitions ( ) { flowNodeTransitionsWrapper . setInputTransitionsSize ( 1 ) ; flowNodeTransitionsWrapper . setAllOutgoingTransitionDefinitions ( java . util . Arrays . asList ( transition1 , transition2 ) ) ; "<AssertPlaceHolder>" ; } isSimpleToMany ...
org . junit . Assert . assertTrue ( flowNodeTransitionsWrapper . isSimpleToMany ( ) )
testGeboorteDatumKindNaAanvAdreshoudingMoeder ( ) { java . util . List < nl . bzk . brp . model . validatie . Melding > melding = brpuc00120 . executeer ( null , nieuweSituatie , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( melding . size ( ) ) == 0 ) )
shouldNotBeAbleToModifyGroupByOnceBuilt ( ) { final T elementDef = uk . gov . gchq . gaffer . store . schema . SchemaElementDefinitionTest . createBuilder ( ) . property ( "property" , uk . gov . gchq . gaffer . store . schema . SchemaElementDefinitionTest . PROPERTY_STRING_TYPE ) . build ( ) ; try { elementDef . getGr...
org . junit . Assert . assertNotNull ( e )
testBoolNotEqual ( ) { executeWithDefaultScope ( "boolVar<sp>=<sp>true<sp>!=<sp>false" ) ; "<AssertPlaceHolder>" ; } getBoolValue ( ) { return context . getVariable ( "boolVar" ) . getValue ( ) ; }
org . junit . Assert . assertEquals ( true , getBoolValue ( ) )
testResourceLoading_notNormalized ( ) { java . net . URL url = org . reficio . ws . common . ResourceUtils . getResourceWithAbsolutePackagePath ( org . reficio . ws . common . System . class , "org/../org/reficio/../reficio/ws/common/test/" , "soapEncoding.xsd" ) ; "<AssertPlaceHolder>" ; } getResourceWithAbsolutePacka...
org . junit . Assert . assertNotNull ( url )
getRequesterUnknownHash ( ) { org . apache . vysper . xmpp . extension . xep0065_socks . DefaultSocks5ConnectionsRegistry connectionsRegistry = new org . apache . vysper . xmpp . extension . xep0065_socks . DefaultSocks5ConnectionsRegistry ( ) ; "<AssertPlaceHolder>" ; } getRequester ( java . lang . String ) { org . ap...
org . junit . Assert . assertNull ( connectionsRegistry . getRequester ( hash ) )
testEmptyLabels ( ) { at . ac . univie . mminf . qskos4j . issues . labels . util . EmptyLabelsResult result = emptyLabeledResources . getResult ( ) ; "<AssertPlaceHolder>" ; } occurrenceCount ( ) { return at . ac . univie . mminf . qskos4j . result . NumberResult . getData ( ) . longValue ( ) ; }
org . junit . Assert . assertEquals ( 3 , result . occurrenceCount ( ) )
posts ( ) { "<AssertPlaceHolder>" ; } posts ( ) { org . junit . Assert . assertThat ( facebook . posts ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . PostMethods . class ) ) ; }
org . junit . Assert . assertThat ( facebook . posts ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . PostMethods . class ) )
whenConvertedToBoolean_thenCorrect ( ) { java . lang . String beforeConvStr = "true" ; java . lang . Boolean afterConvBoolean = true ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( java . lang . Boolean . valueOf ( beforeConvStr ) , afterConvBoolean )
countPreviousPostsShouldReturn6 ( ) { new net . jforum . util . JDBCLoader ( session ( ) ) . run ( "/postdao/countPreviousPosts.sql" ) ; this . commit ( ) ; this . beginTransaction ( ) ; net . jforum . repository . PostRepository dao = this . newDao ( ) ; int total = dao . countPreviousPosts ( 6 ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( 6 , total )
executeTopLevelOnlyShouldOnlyExecuteTopLevelQueries ( ) { "<AssertPlaceHolder>" ; verifyZeroInteractions ( clientTracer ) ; } executeTopLevelOnly ( ) { return true ; }
org . junit . Assert . assertTrue ( subject . executeTopLevelOnly ( ) )
testFalseOption ( ) { int flag = 65520 ; int count = 0 ; try { channel . start ( flag ) ; count ++ ; } catch ( java . lang . Exception x ) { x . printStackTrace ( ) ; } try { channel . start ( flag ) ; count ++ ; } catch ( java . lang . Exception x ) { } "<AssertPlaceHolder>" ; channel . stop ( Channel . DEFAULT ) ; } ...
org . junit . Assert . assertEquals ( count , 2 )
needsNoAdditionalConfigurationTest1 ( ) { org . camunda . bpm . spring . boot . starter . configuration . condition . NeedsHistoryAutoConfigurationCondition condition = spy ( new org . camunda . bpm . spring . boot . starter . configuration . condition . NeedsHistoryAutoConfigurationCondition ( ) ) ; org . springframew...
org . junit . Assert . assertFalse ( condition . needsAdditionalConfiguration ( context ) )
testVisitSets ( ) { int id = 0 ; try { id = _setupTestVisit ( true ) ; _checkVisitIntoDb ( id ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkVisitIntoDb ( int ) { org . isf . visits . model . Visit foundVisit ; foundVisit = ( ( org . isf . visits . model...
org . junit . Assert . assertEquals ( true , false )
testGetCountryForCode_String ( ) { System . out . println ( "getCountryForCode" ) ; java . lang . String code = "334" ; java . lang . String expResult = "Heard<sp>Island<sp>and<sp>McDonald<sp>Islands" ; java . lang . String result = sasc . util . ISO3166_1 . getCountryForCode ( code ) ; "<AssertPlaceHolder>" ; } getCou...
org . junit . Assert . assertEquals ( expResult , result )
serializeReplyWithJoynrMessageNotSentException ( ) { io . joynr . exceptions . JoynrMessageNotSentException error = new io . joynr . exceptions . JoynrMessageNotSentException ( "detail<sp>message:<sp>JoynrMessageNotSentException" ) ; joynr . Reply reply = new joynr . Reply ( java . util . UUID . randomUUID ( ) . toStri...
org . junit . Assert . assertEquals ( reply , receivedReply )
noneCompiled ( ) { java . util . Properties config = new java . util . Properties ( ) ; config . put ( JetConfig . COMPILE_STRATEGY , "none" ) ; jetbrick . template . JetEngine engine = jetbrick . template . JetEngine . create ( config ) ; jetbrick . template . JetTemplate template = engine . getTemplate ( "/template/t...
org . junit . Assert . assertEquals ( out . toString ( ) , "" )
testCallFunctionOnUndefined ( ) { v8 . executeVoidScript ( "function<sp>add(x,<sp>y)<sp>{return<sp>x+y;}" ) ; com . eclipsesource . v8 . V8Function function = ( ( com . eclipsesource . v8 . V8Function ) ( v8 . getObject ( "add" ) ) ) ; com . eclipsesource . v8 . V8Array parameters = new com . eclipsesource . v8 . V8Arr...
org . junit . Assert . assertEquals ( 15 , result )
testGetStatusServlet ( ) { org . eclipse . jetty . testing . HttpTester request = new org . eclipse . jetty . testing . HttpTester ( ) ; org . eclipse . jetty . testing . HttpTester response = new org . eclipse . jetty . testing . HttpTester ( ) ; request . setMethod ( "GET" ) ; request . setHeader ( "Host" , "tester" ...
org . junit . Assert . assertEquals ( response . getContent ( ) . trim ( ) , xml . trim ( ) )
itShouldReturnInfluxDBSenderObjectWhenMakeInfluxDBSenderMethodIsCalled ( ) { final com . github . christiangda . storm . metrics . InfluxDBMetricsConsumer influxDBMetricsConsumer = org . mockito . Mockito . mock ( com . github . christiangda . storm . metrics . InfluxDBMetricsConsumer . class ) ; final com . github . c...
org . junit . Assert . assertEquals ( influxDBSender , influxDBMetricsConsumer . makeInfluxDBSender ( anyMap ( ) ) )
deveGerarXMLDeAcordoComOPadraoEstabelecidoQuantidadeValorUnidadeTributavel ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoIPITributado ipiTributado = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoIPITributado ( ) ; ipiTributado . set...
org . junit . Assert . assertEquals ( xmlEsperado , ipiTributado . toString ( ) )
testDefaultCompress ( ) { io . joynr . messaging . MessagingQos messagingQos = new io . joynr . messaging . MessagingQos ( 0L ) ; "<AssertPlaceHolder>" ; } getCompress ( ) { return compress ; }
org . junit . Assert . assertEquals ( false , messagingQos . getCompress ( ) )
testToString ( ) { java . lang . String string = "string" ; when ( delegate . toString ( ) ) . thenReturn ( string ) ; "<AssertPlaceHolder>" ; } toString ( ) { return delegate . toString ( ) ; }
org . junit . Assert . assertEquals ( string , mapping . toString ( ) )
testComparator1 ( ) { final org . jacoco . report . internal . html . table . ITableItem i1 = createItem ( "abcdef" , null ) ; final org . jacoco . report . internal . html . table . ITableItem i2 = createItem ( "aBcDeF" , null ) ; "<AssertPlaceHolder>" ; html . close ( ) ; } getComparator ( ) { return comparator ; }
org . junit . Assert . assertEquals ( 0 , column . getComparator ( ) . compare ( i1 , i2 ) )
testGetIno ( ) { org . dcache . nfs . vfs . Stat stat = new org . dcache . nfs . vfs . Stat ( ) ; stat . setIno ( 1 ) ; "<AssertPlaceHolder>" ; } getIno ( ) { guard ( org . dcache . nfs . vfs . Stat . StatAttribute . INO ) ; return _ino ; }
org . junit . Assert . assertEquals ( 1 , stat . getIno ( ) )
testRemoveMaterial ( ) { org . libreplan . business . materials . entities . Material material = createValidMaterial ( ) ; materialDAO . save ( material ) ; materialDAO . remove ( material . getId ( ) ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java . io . Serializable ) { return ( getSession ( ) . createCriteria...
org . junit . Assert . assertFalse ( materialDAO . exists ( material . getId ( ) ) )
testEvaluate_IMFMessage_noMsgId_assertNullId ( ) { org . nhindirect . monitor . expression . MessageIdCorrelationExpression exp = new org . nhindirect . monitor . expression . MessageIdCorrelationExpression ( ) ; java . util . Map < java . lang . String , org . nhindirect . common . tx . model . TxDetail > details = ne...
org . junit . Assert . assertNull ( exp . evaluate ( exchange , java . lang . String . class ) )
simpleTest1 ( ) { final java . lang . String agentId = "agentId" ; final long startTimestamp = Long . MAX_VALUE ; final long eventTimestamp = startTimestamp ; final com . navercorp . pinpoint . thrift . dto . TAgentStat agentStat = createAgentStat ( agentId , startTimestamp , eventTimestamp , 2 ) ; com . navercorp . pi...
org . junit . Assert . assertEquals ( expectedEventBo , actualEventBo )
trimAccessModifierFromMethodSignatureArea_A$String_StringIsNull ( ) { org . junithelper . core . extractor . ConstructorMetaExtractor target = new org . junithelper . core . extractor . ConstructorMetaExtractor ( config ) ; java . lang . String methodSignatureArea = "public<sp>void<sp>doSomething()" ; java . lang . Str...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testValidateWithAValidJavaFile ( ) { final org . uberfire . backend . vfs . Path path1 = path ( "/GuvnorM2RepoDependencyExample1/src/main/java/org/kie/workbench/common/services/builder/tests/test1/Bean.java" ) ; final java . lang . String content = "package<sp>org.kie.workbench.common.services.builder.tests.test1;\n" +...
org . junit . Assert . assertTrue ( validate . isEmpty ( ) )
testCreateXADataSourceDefault ( ) { javax . sql . XADataSource dataSource = dataSourceFactory . createXADataSource ( null ) ; "<AssertPlaceHolder>" ; } createXADataSource ( java . util . Properties ) { props = new org . postgresql . osgi . PGDataSourceFactory . SingleUseProperties ( props ) ; org . postgresql . xa . PG...
org . junit . Assert . assertNotNull ( dataSource )