input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testYangIIToBindingAwareIIListWildcarded ( ) { final org . opendaylight . yangtools . yang . binding . InstanceIdentifier < ? > instanceIdentifier = registry . fromYangInstanceIdentifier ( org . opendaylight . mdsal . binding . dom . codec . test . InstanceIdentifierSerializeDeserializeTest . BI_TOP_LEVEL_LIST_PATH ) ;...
org . junit . Assert . assertNull ( instanceIdentifier )
serializeReplyWithJoynrApplicationExceptionWithoutMessage ( ) { joynr . exceptions . ApplicationException error = new joynr . exceptions . ApplicationException ( joynr . tests . testTypes . TestEnum . TWO ) ; joynr . Reply reply = new joynr . Reply ( java . util . UUID . randomUUID ( ) . toString ( ) , error ) ; java ....
org . junit . Assert . assertEquals ( reply , receivedReply )
scheduledExecutorService_default ( ) { io . grpc . inprocess . InProcessServerBuilder builder = io . grpc . inprocess . InProcessServerBuilder . forName ( "foo" ) ; io . grpc . inprocess . InProcessServer server = com . google . common . collect . Iterables . getOnlyElement ( builder . buildTransportServers ( new java ...
org . junit . Assert . assertSame ( expected , actual )
should_traverse_forks ( ) { T int k = 4 ; java . util . List < au . edu . wehi . idsv . DirectedEvidence > input = new java . util . ArrayList < au . edu . wehi . idsv . DirectedEvidence > ( ) ; input . add ( SCE ( au . edu . wehi . idsv . debruijn . positional . FWD , withSequence ( "AAAATTGGCCAGC" , Read ( 0 , 1 , "4...
org . junit . Assert . assertEquals ( 4 , result . size ( ) )
testDivision1 ( ) { java . math . BigDecimal bigDecimal = new java . math . BigDecimal ( 2 ) ; com . liferay . dynamic . data . mapping . expression . internal . DDMExpressionImpl < java . math . BigDecimal > ddmExpression = createDDMExpression ( "6<sp>/<sp>3" ) ; "<AssertPlaceHolder>" ; } setScale ( java . lang . Stri...
org . junit . Assert . assertEquals ( bigDecimal . setScale ( 2 ) , ddmExpression . evaluate ( ) )
testAjaxOnBlur ( ) { browser . get ( contextPath . toExternalForm ( ) ) ; autocompleteInput . sendKeys ( "t" ) ; waitGui ( ) . withMessage ( "suggestion<sp>list<sp>is<sp>visible" ) . until ( ) . element ( suggestionList ) . is ( ) . visible ( ) ; autocompleteItem . click ( ) ; org . jboss . arquillian . warp . Warp . i...
org . junit . Assert . assertTrue ( bean . isListenerInvoked ( ) )
readByte_skip_nodelim ( ) { java . io . InputStream origin = bytes ( "Hello,<sp>world!" ) ; java . io . InputStream testee = new com . asakusafw . runtime . directio . util . DelimiterRangeInputStream ( origin , '|' , 100 , true ) ; "<AssertPlaceHolder>" ; } readBytes ( java . io . InputStream ) { java . io . ByteArray...
org . junit . Assert . assertThat ( readBytes ( testee ) , is ( "" ) )
costPerEntry ( ) { builder . setProperty ( FulltextIndexConstants . COMPAT_MODE , 2 ) ; org . apache . jackrabbit . oak . plugins . index . search . IndexDefinition defn = new org . apache . jackrabbit . oak . plugins . index . search . IndexDefinition ( root , builder . getNodeState ( ) , "/foo" ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( 1.0 , defn . getCostPerEntry ( ) , 0.0 )
testUpdateApplicationPriority ( ) { org . apache . hadoop . yarn . client . cli . ApplicationCLI cli = createAndGetAppCLI ( ) ; org . apache . hadoop . yarn . api . records . ApplicationId applicationId = org . apache . hadoop . yarn . api . records . ApplicationId . newInstance ( 1234 , 6 ) ; org . apache . hadoop . y...
org . junit . Assert . assertEquals ( result , 0 )
setErrorTextWithNoCauseException ( ) { java . lang . Exception e = new org . pentaho . di . core . exception . KettleException ( "kettleMessage" ) ; java . lang . StringBuilder text = new java . lang . StringBuilder ( ) ; java . lang . StringBuilder details = new java . lang . StringBuilder ( ) ; org . pentaho . di . u...
org . junit . Assert . assertEquals ( text . toString ( ) , e . getMessage ( ) . toString ( ) )
characterUnicodeLinebreak ( ) { org . apache . pdfbox . pdmodel . interactive . form . PlainText text = new org . apache . pdfbox . pdmodel . interactive . form . PlainText ( "linebreak
linebreak" ) ; "<AssertPlaceHolder>" ; } getParagraphs ( ) { return paragraphs ; }
org . junit . Assert . assertEquals ( 2 , text . getParagraphs ( ) . size ( ) )
testCreateNodeWithField ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { com . gentics . mesh . core . rest . node . NodeResponse response = createNodeWithField ( ) ; com . gentics . mesh . core . rest . node . field . impl . BooleanFieldImpl field = response . getFields ( ) . getBooleanField ( com . gentic...
org . junit . Assert . assertTrue ( field . getValue ( ) )
resetPropertyValueOnResourceForContextShouldThrowExceptionWhenResourceUpdatePermissionIsMissing ( ) { java . lang . String resourceGroupName = "resourceGroupName" ; java . lang . String releaseName = "releaseName" ; java . lang . String contextName = "contextName" ; java . lang . String propertyName = "propertyName" ; ...
org . junit . Assert . assertFalse ( properties . isEmpty ( ) )
apply_A$Collection ( ) { com . m3 . scalaflavor4j . List < java . lang . Integer > list_ = new com . m3 . scalaflavor4j . ArrayList < java . lang . Integer > ( ) ; list_ . add ( 1 ) ; list_ . add ( 2 ) ; list_ . add ( 3 ) ; com . m3 . scalaflavor4j . IndexedSeq < java . lang . Integer > actual = com . m3 . scalaflavor4...
org . junit . Assert . assertThat ( actual . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 3 ) ) )
shouldJSONSerialiseAndDeserialise ( ) { final uk . gov . gchq . gaffer . operation . impl . output . ToVertices op = new uk . gov . gchq . gaffer . operation . impl . output . ToVertices . Builder ( ) . input ( new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "2" ) ) . edgeVertices ( EdgeVertices . BOTH )...
org . junit . Assert . assertNotNull ( deserialisedOp )
testUpdateTrustBundleSigningCertificate_bundleDoesntExist_assertException ( ) { boolean exceptionOccured = false ; try { org . nhindirect . config . store . TrustBundleAnchor anchor = new org . nhindirect . config . store . TrustBundleAnchor ( ) ; anchor . setData ( loadCertificateData ( "secureHealthEmailCACert.der" )...
org . junit . Assert . assertTrue ( exceptionOccured )
testEncodeDynamoDBHyphen ( ) { System . out . println ( ( ( com . telefonica . iot . cygnus . utils . CommonUtilsForTests . getTestTraceHead ( "[NGSICharsets.encodeDynamoDB]" ) ) + "--------<sp>Hyphen<sp>is<sp>not<sp>encoded" ) ) ; java . lang . String in = "-" ; java . lang . String expected = "-" ; java . lang . Stri...
org . junit . Assert . assertEquals ( expected , out )
getPeriodDescription ( ) { java . text . DateFormat df = new java . text . SimpleDateFormat ( "GMT+0" 4 ) ; java . text . DateFormat df2 = new java . text . SimpleDateFormat ( "GMT+0" 8 ) ; df . setTimeZone ( java . util . TimeZone . getTimeZone ( "GMT+0" ) ) ; df2 . setTimeZone ( java . util . TimeZone . getTimeZone (...
org . junit . Assert . assertEquals ( expResult , result )
reexportDependencies ( ) { java . lang . StringBuffer message = new java . lang . StringBuffer ( ) ; int nb = 0 ; for ( final org . osgi . framework . Bundle current : org . eclipse . papyrus . bundles . tests . BundleTestsUtils . getPapyrusBundles ( ) ) { final java . lang . String value = current . getHeaders ( ) . g...
org . junit . Assert . assertTrue ( errorMessage . toString ( ) , ( nb == 0 ) )
testTransformJavaToXML ( ) { org . switchyard . quickstarts . transform . json . Order testOrder = new org . switchyard . quickstarts . transform . json . Order ( ) . setOrderId ( "PO-19838-XYZ" ) . setItemId ( "BUTTER" ) . setQuantity ( 100 ) ; java . lang . String result = submitOrder . expectedOutputType ( org . swi...
org . junit . Assert . assertEquals ( expected , returned )
providesHeaderNamesAsArray ( ) { java . util . Set < java . lang . String > nettyHeaders = new io . netty . handler . codec . http . DefaultHttpHeaders ( ) . add ( HttpHeaderNames . CONTENT_LENGTH , 10 ) . names ( ) ; java . lang . String [ ] namesArray = nettyHeaders . toArray ( new java . lang . String [ 0 ] ) ; "<As...
org . junit . Assert . assertArrayEquals ( namesArray , new java . lang . String [ ] { HttpHeaderNames . CONTENT_LENGTH . toString ( ) } )
parseWriteConfig ( ) { final java . lang . String [ ] args = new java . lang . String [ ] { "-m" , "export" , "-d" , "/tmp/rdf" , "-w" , "target/sample.yml" , "-r" , "http://localhost:8080/rest/1" } ; final org . fcrepo . importexport . common . Config config = parser . parseConfiguration ( args ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( new java . io . File ( "target/sample.yml" ) , config . getWriteConfig ( ) )
testStepWithListOfDos ( ) { java . net . URI resource = getClass ( ) . getResource ( "/corrupted/step_with_list_of_do_flow.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . SlangSource . fromFi...
org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) )
endsWithOtherFs ( ) { final java . nio . file . FileSystem otherFs = org . jboss . shrinkwrap . api . nio2 . file . ShrinkWrapFileSystems . newFileSystem ( org . jboss . shrinkwrap . api . ShrinkWrap . create ( org . jboss . shrinkwrap . api . GenericArchive . class ) ) ; final java . nio . file . Path otherPath = othe...
org . junit . Assert . assertFalse ( endsWith )
createBillingDataForOrganization_FreeOfChargeDeactivatedBeforePeriod ( ) { pmh . setType ( PriceModelType . FREE_OF_CHARGE ) ; long billingPeriodStart = org . oscm . test . DateTimeHandling . calculateMillis ( "2013-03-01<sp>00:00:00" ) ; long billingPeriodEnd = org . oscm . test . DateTimeHandling . calculateMillis ( ...
org . junit . Assert . assertNull ( doc )
testFindByTenantIdAndBundleAlias ( ) { java . util . UUID tenantId = java . util . UUID . fromString ( "2b7e4c90-2dfe-11e7-94aa-f7f6dbfb4833" ) ; java . util . List < org . thingsboard . server . common . data . widget . WidgetType > widgetTypes = widgetTypeDao . findWidgetTypesByTenantIdAndBundleAlias ( tenantId , "BU...
org . junit . Assert . assertEquals ( 3 , widgetTypes . size ( ) )
testMarkSupported ( ) { com . liferay . portal . kernel . io . unsync . UnsyncStringReader unsyncStringReader = new com . liferay . portal . kernel . io . unsync . UnsyncStringReader ( "abc" ) ; "<AssertPlaceHolder>" ; } markSupported ( ) { return false ; }
org . junit . Assert . assertTrue ( unsyncStringReader . markSupported ( ) )
testEvaluateTwoIndexVarInstantiate1 ( ) { final org . eclipse . rdf4j . model . IRI superclass = org . apache . rya . indexing . external . AccumuloConstantPcjIT . VF . createIRI ( "o" 4 ) ; final org . eclipse . rdf4j . model . IRI superclass2 = org . apache . rya . indexing . external . AccumuloConstantPcjIT . VF . c...
org . junit . Assert . assertEquals ( crh1 . getCount ( ) , crh2 . getCount ( ) )
testBatchLoadItemListOnNull ( ) { final software . amazon . awssdk . services . dynamodb . datamodeling . DynamoDbTableMapper < software . amazon . awssdk . services . dynamodb . mapper . TableMapperIntegrationTest . KeyAndDateValue , java . lang . String , ? > mapper = util . newTableMapper ( software . amazon . awssd...
org . junit . Assert . assertEquals ( 0 , mapper . batchLoad ( ( ( java . util . List < software . amazon . awssdk . services . dynamodb . mapper . TableMapperIntegrationTest . KeyAndDateValue > ) ( null ) ) ) . size ( ) )
should_generated_hash_code ( ) { int hashCode = sonar . hashCode ( ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { return com . google . common . base . Objects . hashCode ( description , domain , key , name ) ; }
org . junit . Assert . assertFalse ( ( hashCode == 0 ) )
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 ( layoutSetVersions . isEmpty ( ) )
testGetReportToChain ( ) { com . ibm . sbt . services . client . base . datahandlers . EntityList < com . ibm . sbt . services . client . connections . profiles . Profile > profileEntries = profileService . getReportingChain ( com . ibm . sbt . test . lib . TestEnvironment . getCurrentUserEmail ( ) ) ; if ( ( profileEn...
org . junit . Assert . assertNotNull ( profile . getName ( ) )
parse ( ) { net . openhft . chronicle . wire . IntConverter bic = new net . openhft . chronicle . wire . WordsIntConverter ( ) ; for ( int l : new int [ ] { Integer . MIN_VALUE , - 1 , 0 , 1 , Integer . MAX_VALUE } ) { java . lang . String text = bic . asString ( l ) ; System . out . println ( text ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( l , bic . parse ( text ) )
hasNineSeconds ( ) { "<AssertPlaceHolder>" ; } seconds ( ) { return ( totalTimeInSeconds ) % 60 ; }
org . junit . Assert . assertEquals ( 9 , time . seconds ( ) )
testDecimalRoundingMetaData ( ) { org . apache . hadoop . hive . ql . udf . generic . GenericUDFRound udf = new org . apache . hadoop . hive . ql . udf . generic . GenericUDFRound ( ) ; org . apache . hadoop . hive . serde2 . objectinspector . ObjectInspector [ ] inputOIs = new org . apache . hadoop . hive . serde2 . o...
org . junit . Assert . assertEquals ( org . apache . hadoop . hive . serde2 . typeinfo . TypeInfoFactory . getDecimalTypeInfo ( 7 , 2 ) , outputTypeInfo )
northSouthEdgesComeFromBothSidesDontCross ( ) { getSouthernNorthSouthGraphEdgesFromEastAndWestNoCrossings ( ) ; int crossingCount = initCounterForLayerWithIndexAndCountInLayer ( 1 ) ; "<AssertPlaceHolder>" ; } initCounterForLayerWithIndexAndCountInLayer ( int ) { setUpIds ( ) ; int numPorts = 0 ; for ( org . eclipse . ...
org . junit . Assert . assertThat ( crossingCount , org . hamcrest . CoreMatchers . is ( 0 ) )
testGetVisualTextWidth_withMarkup ( ) { org . eclipse . swt . widgets . TreeItem item = new org . eclipse . swt . widgets . TreeItem ( tree , org . eclipse . swt . SWT . NONE ) ; item . setText ( "<b>foo</b>" ) ; int width1 = tree . getVisualTextWidth ( item , 0 ) ; item . clearPreferredWidthBuffers ( false ) ; tree . ...
org . junit . Assert . assertTrue ( ( width1 > width2 ) )
fetchesFilesThatAreMissingFromUrlStoreCache ( ) { final java . lang . String testProjectName = "123abc" ; final java . lang . String testUrl = ( "http://localhost:" + ( mockServerRule . getPort ( ) ) ) + "/123abc" ; final java . lang . String oldTestPath = "testPath" ; final java . lang . String newTestPath = "missingP...
org . junit . Assert . assertEquals ( 0 , fetchedUrls . size ( ) )
test ( ) { initGraph ( ) ; greycat . Tasks . newTask ( ) . then ( greycat . internal . task . CoreActions . inject ( "uselessPayload" ) ) . thenDo ( new greycat . ActionFunction ( ) { @ greycatTest . internal . task . Override public void eval ( greycat . TaskContext ctx ) { "<AssertPlaceHolder>" ; } } ) . execute ( gr...
org . junit . Assert . assertEquals ( ctx . resultAsStrings ( ) . get ( 0 ) , "uselessPayload" )
testOrOnEmptyOptional ( ) { boolean value = com . annimon . stream . OptionalBoolean . empty ( ) . or ( new com . annimon . stream . function . Supplier < com . annimon . stream . OptionalBoolean > ( ) { @ com . annimon . stream . Override public com . annimon . stream . OptionalBoolean get ( ) { return com . annimon ....
org . junit . Assert . assertFalse ( value )
setDefaultPortAsPortOption2 ( ) { java . net . URI webserviceURI = new java . net . URI ( ( ( ( ( "coap://" + ( de . uzl . itm . ncoap . communication . codec . AllowDefaultOptionValues . HOST ) ) + ":" ) + ( de . uzl . itm . ncoap . message . options . OptionValue . URI_PORT_DEFAULT ) ) + "/registry" ) ) ; de . uzl . ...
org . junit . Assert . assertTrue ( false )
testInputStream ( ) { com . facebook . imagepipeline . image . EncodedImage encodedImage = new com . facebook . imagepipeline . image . EncodedImage ( mInputStreamSupplier ) ; "<AssertPlaceHolder>" ; } getInputStream ( ) { if ( ( mInputStreamSupplier ) != null ) { return mInputStreamSupplier . get ( ) ; } com . faceboo...
org . junit . Assert . assertSame ( encodedImage . getInputStream ( ) , mInputStreamSupplier . get ( ) )
getPatients_shouldNotGetPatientByNonexistingShortNameParts_SignatureNo1 ( ) { java . util . List < org . openmrs . Patient > patients = dao . getPatients ( "xy<sp>yz<sp>za" , 0 , 11 ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( ...
org . junit . Assert . assertEquals ( 0 , patients . size ( ) )
loginServerCredential_passes ( ) { final java . security . cert . X509Certificate [ ] certChain = new java . security . cert . X509Certificate [ ] { cert } ; mock . checking ( new org . jmock . Expectations ( ) { { one ( collectiveAuthenticationPlugin ) . isCollectiveCertificateChain ( certChain ) ; will ( returnValue ...
org . junit . Assert . assertTrue ( module . login ( ) )
testListProductAttributeSets ( ) { try { java . util . List < com . magento . api . CatalogProductAttributeSetEntity > catalogProductAttributeSetEntities = runFlowAndGetPayload ( "list-product-attribute-sets" ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( org . mule . ...
org . junit . Assert . assertNotNull ( catalogProductAttributeSetEntities )
testGetSetName ( ) { java . lang . String testName = "testName" ; userDefinedItem . setName ( testName ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( testName , userDefinedItem . getName ( ) )
testOAuth20AutoDetect ( ) { setAuthType ( AuthType . AUTO_DETECT ) ; boolean result = checkExpected ( "Authentication_API_OAuth20MainWindow" , "Successfully<sp>logged<sp>in" ) ; "<AssertPlaceHolder>" ; } getExpectedErrorMsg ( ) { return expectedErrorMsg ; }
org . junit . Assert . assertTrue ( getExpectedErrorMsg ( ) , result )
testNativeAppWall ( ) { com . xrtb . common . HttpPostGet http = new com . xrtb . common . HttpPostGet ( ) ; java . lang . String bid = java . nio . charset . Charset . defaultCharset ( ) . decode ( java . nio . ByteBuffer . wrap ( java . nio . file . Files . readAllBytes ( java . nio . file . Paths . get ( "assets" 5 ...
org . junit . Assert . assertNull ( s )
testFakeStrategy ( ) { fr . inria . main . evolution . AstorMain main1 = new fr . inria . main . evolution . AstorMain ( ) ; java . lang . String dep = ( new java . io . File ( "30" 1 ) . getAbsolutePath ( ) ) + ( java . io . File . pathSeparator ) ; java . io . File out = new java . io . File ( fr . inria . astor . co...
org . junit . Assert . assertTrue ( solutions . isEmpty ( ) )
testEncodeCertificate_BodySignature ( ) { de . persosim . simulator . crypto . certificates . CardVerifiableCertificate cvCertDETESTeID00004 = new de . persosim . simulator . crypto . certificates . CardVerifiableCertificate ( cvCertDETESTeID00004Tlv ) ; de . persosim . simulator . crypto . certificates . CertificateBo...
org . junit . Assert . assertEquals ( cvCertDETESTeID00004Tlv , encoding )
whenJarMemberWithHashInManifestIsQueriedThenCacheCorrectlyObtainsIt ( ) { com . facebook . buck . io . filesystem . ProjectFilesystem filesystem = new com . facebook . buck . io . filesystem . impl . FakeProjectFilesystem ( ) ; com . facebook . buck . util . cache . impl . DefaultFileHashCache cache = com . facebook . ...
org . junit . Assert . assertEquals ( expected , actual )
testGetDataExceptions ( ) { org . easymock . EasyMock . expect ( uploadResource . getSize ( ) ) . andStubReturn ( ( ( long ) ( Long . MAX_VALUE ) ) ) ; org . easymock . EasyMock . expect ( uploadResource . getInputStream ( ) ) . andStubAnswer ( org . richfaces . request . UploadedFile25Test . INPUT_STREAM_SUPPLIER ) ; ...
org . junit . Assert . assertTrue ( ( ( e . getCause ( ) ) instanceof java . io . IOException ) )
renderShouldWorkForRich ( ) { final ac . simons . oembed . DefaultOembedResponseRenderer renderer = new ac . simons . oembed . DefaultOembedResponseRenderer ( ) ; ac . simons . oembed . OembedResponse response ; response = new ac . simons . oembed . OembedResponse ( ) ; response . setType ( "rich" ) ; response . setHtm...
org . junit . Assert . assertEquals ( "<html<sp>/>" , renderer . render ( response , null ) )
testGetFactoryNoCreate ( ) { final java . lang . String pid = "a.b~name" ; final org . osgi . service . cm . ConfigurationAdmin ca = mock ( org . osgi . service . cm . ConfigurationAdmin . class ) ; when ( ca . listConfigurations ( getFilterString ( pid ) ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; verify ( ca ...
org . junit . Assert . assertNull ( org . apache . felix . configurator . impl . ConfigUtil . getOrCreateConfiguration ( ca , pid , false ) )
assertUpdate ( ) { io . elasticjob . cloud . reg . zookeeper . ZookeeperRegistryCenterModifyTest . zkRegCenter . persist ( "/update" , "before_update" ) ; io . elasticjob . cloud . reg . zookeeper . ZookeeperRegistryCenterModifyTest . zkRegCenter . update ( "/update" , "after_update" ) ; "<AssertPlaceHolder>" ; } getDi...
org . junit . Assert . assertThat ( io . elasticjob . cloud . reg . zookeeper . ZookeeperRegistryCenterModifyTest . zkRegCenter . getDirectly ( "/update" ) , org . hamcrest . CoreMatchers . is ( "after_update" ) )
constructorWithNullValueShouldNotThrows ( ) { com . gisgraphy . fulltext . solrResponseDtoBuilder builder = new com . gisgraphy . fulltext . solrResponseDtoBuilder ( ) ; "<AssertPlaceHolder>" ; } build ( org . apache . solr . client . solrj . response . QueryResponse ) { com . gisgraphy . fulltext . FulltextResultsDto ...
org . junit . Assert . assertNotNull ( builder . build ( null ) )
testGetResults ( ) { java . time . ZonedDateTime entryFilledTime = java . time . ZonedDateTime . of ( 2017 , 2 , 8 , 6 , 18 , 20 , 0 , java . time . ZoneId . systemDefault ( ) ) ; java . time . ZonedDateTime exitFilledTime = java . time . ZonedDateTime . of ( 2017 , 2 , 8 , 7 , 18 , 20 , 0 , java . time . ZoneId . syst...
org . junit . Assert . assertEquals ( expectedString , testRoundTrip . getResults ( ) )
testTransferAppend ( ) { final ch . cyberduck . core . Local local = new ch . cyberduck . core . Local ( java . lang . System . getProperty ( "java.io.tmpdir" ) , java . util . UUID . randomUUID ( ) . toString ( ) ) ; final byte [ ] content = new byte [ 32770 ] ; new java . util . Random ( ) . nextBytes ( content ) ; f...
org . junit . Assert . assertArrayEquals ( content , buffer )
testMagicVisitorSubclass ( ) { java . util . List < com . ning . atlas . tree . Pancake > rs = com . ning . atlas . tree . Trees . visit ( root , new java . util . ArrayList < com . ning . atlas . tree . Pancake > ( ) , new com . ning . atlas . tree . MagicVisitor < com . ning . atlas . tree . Waffle , java . util . Li...
org . junit . Assert . assertThat ( rs . size ( ) , org . hamcrest . CoreMatchers . equalTo ( 3 ) )
testProvideMdcx ( ) { final int transactionId = 12345 ; final org . restcomm . media . core . control . mgcp . util . collections . Parameters < org . restcomm . media . core . control . mgcp . message . MgcpParameterType > parameters = new org . restcomm . media . core . control . mgcp . util . collections . Parameter...
org . junit . Assert . assertTrue ( ( command instanceof org . restcomm . media . core . control . mgcp . command . ModifyConnectionCommand ) )
testGetFirstName_1 ( ) { org . jinstagram . entity . users . basicinfo . UserInfoData fixture = new org . jinstagram . entity . users . basicinfo . UserInfoData ( ) ; fixture . setUsername ( "" ) ; fixture . setFullName ( "" ) ; fixture . setProfilePicture ( "" ) ; fixture . setId ( "" ) ; fixture . setLast_name ( "" )...
org . junit . Assert . assertEquals ( "" , result )
testMakeLambdasWithString ( ) { ast . Expression expr = new ast . Application ( new ast . Variable ( "x" ) , new ast . Variable ( "y" ) ) ; ast . Lambda reference = new ast . Lambda ( "x" , new ast . Lambda ( "y" , new ast . Lambda ( "z" , expr ) ) ) ; ast . Lambda toTest = ast . Lambda . makeLambdas ( expr , "x" , "y"...
org . junit . Assert . assertEquals ( reference , toTest )
testSetAuthenticationTokenFactory ( ) { org . apache . activemq . shiro . authc . AuthenticationTokenFactory factory = new org . apache . activemq . shiro . authc . AuthenticationTokenFactory ( ) { @ org . apache . activemq . shiro . authc . Override public org . apache . shiro . authc . AuthenticationToken getAuthenti...
org . junit . Assert . assertSame ( factory , filter . getAuthenticationTokenFactory ( ) )
getsEndpointFromRegion ( ) { when ( com . amazonaws . regions . RegionUtils . getRegion ( TEST_REGION ) ) . thenReturn ( region ) ; when ( region . getServiceEndpoint ( ServiceAbbreviations . Dynamodb ) ) . thenReturn ( TEST_ENDPOINT ) ; conf . set ( DynamoDBConstants . REGION , TEST_REGION ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( TEST_ENDPOINT , org . apache . hadoop . dynamodb . DynamoDBUtil . getDynamoDBEndpoint ( conf , null ) )
testSendNotificationWithAppKeyWithSpecialCharacter4 ( ) { int erroCode = ErrorCodeEnum . NOERROR . value ( ) ; java . lang . String msgTitle = "jpush" ; java . lang . String msgContent = "jpush~" ; cn . jpush . api . MessageResult result = jpush . sendNotificationWithAppKey ( sendNo , msgTitle , msgContent ) ; "<Assert...
org . junit . Assert . assertEquals ( erroCode , result . getErrcode ( ) )
testFailNotOnSlave ( ) { try ( java . sql . Connection connection = getNewConnection ( "&retriesAllDown=6&connectTimeout=1000&socketTimeout=1000" , true ) ) { java . sql . Statement stmt = connection . createStatement ( ) ; int masterServerId = getServerId ( connection ) ; stopProxy ( masterServerId ) ; try { stmt . ex...
org . junit . Assert . assertFalse ( connection . isReadOnly ( ) )
testUpdateJobDefinition ( ) { java . lang . String namespace = NAMESPACE ; java . lang . String jobName = JOB_NAME ; java . lang . String activitiJobXml = getActivitiJobXml ( org . finra . herd . rest . NAMESPACE , org . finra . herd . rest . JOB_NAME ) ; org . finra . herd . model . api . xml . JobDefinitionUpdateRequ...
org . junit . Assert . assertEquals ( jobDefinition , resultJobDefinition )
basicUuidComperisonTest ( ) { java . util . Random r = new java . util . Random ( java . lang . System . currentTimeMillis ( ) ) ; for ( int i = 0 ; i < 100000 ; i ++ ) { long ts = ( java . lang . System . currentTimeMillis ( ) ) + ( ( ( ( ( 1000 * 60 ) * 60 ) * 24 ) * 365 ) * 10 ) ; long before = ( ( long ) ( ( java ....
org . junit . Assert . assertTrue ( ( ( afterStr . compareTo ( beforeStr ) ) >= 0 ) )
testToDoubleArrayForRandomArray ( ) { int size = getArrayLength ( ) ; double [ ] primitive = new double [ size ] ; java . lang . Double [ ] object = new java . lang . Double [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { double value = cz . zcu . kiv . jop . util . ArrayUtilsTest . rand . nextDouble ( ) ; primitive [...
org . junit . Assert . assertArrayEquals ( object , cz . zcu . kiv . jop . util . ArrayUtils . toObjectArray ( primitive ) )
testSaveListOfTZipOutputStreamStringCsvConfigCsvListHandlerOfTString ( ) { final java . io . File file = tempFolder . newFile ( "test.zip" ) ; final java . util . zip . ZipOutputStream zip = new java . util . zip . ZipOutputStream ( new java . io . FileOutputStream ( file ) ) ; try { com . orangesignal . csv . Csv . sa...
org . junit . Assert . assertThat ( list . size ( ) , org . hamcrest . core . Is . is ( 2 ) )
getNodeForEmptyCircleTest ( ) { org . kaaproject . kaa . server . hash . ConsistentHashResolver consistentHashResolver = new org . kaaproject . kaa . server . hash . ConsistentHashResolver ( new java . util . ArrayList < org . kaaproject . kaa . server . common . zk . gen . OperationsNodeInfo > ( ) , 5 ) ; org . kaapro...
org . junit . Assert . assertNull ( info )
testGetIdField ( ) { org . slc . sli . aggregation . mapreduce . map . key . TenantAndIdEmittableKey key = new org . slc . sli . aggregation . mapreduce . map . key . TenantAndIdEmittableKey ( "meta.data.tenantId" , "test.id.key.field" ) ; "<AssertPlaceHolder>" ; } getIdField ( ) { return super . getFieldName ( ) ; }
org . junit . Assert . assertEquals ( key . getIdField ( ) . toString ( ) , "test.id.key.field" )
getCustomers_noCustomers ( ) { java . util . List < org . oscm . internal . vo . VOOrganization > emptyList = new java . util . ArrayList < org . oscm . internal . vo . VOOrganization > ( ) ; given ( exportBillingService . accountService . getMyCustomers ( ) ) . willReturn ( emptyList ) ; java . util . List < org . osc...
org . junit . Assert . assertEquals ( customers . size ( ) , 0 )
testIsCrawable ( ) { try { java . net . URL url = new java . net . URL ( "http://jcertif.com/lab/2014/05/04/il-etait-une-fois-le-lab.html" ) ; "<AssertPlaceHolder>" ; } catch ( java . net . MalformedURLException ex ) { java . util . logging . Logger . getLogger ( com . jcertif . offlinebox . web . crawling . CrawlingSt...
org . junit . Assert . assertTrue ( strategy . isCrawable ( url , 2 ) )
testMultilineBuildLogFailureReaderSuccessful ( ) { hudson . model . FreeStyleProject project = j . createFreeStyleProject ( ) ; project . getBuildersList ( ) . add ( new com . sonyericsson . jenkins . plugins . bfa . test . utils . PrintToLogBuilder ( com . sonyericsson . jenkins . plugins . bfa . model . indication . ...
org . junit . Assert . assertNotNull ( found )
testGetOutputSize ( ) { com . facebook . buck . io . filesystem . impl . FakeProjectFilesystem filesystem = new com . facebook . buck . io . filesystem . impl . FakeProjectFilesystem ( ) ; com . facebook . buck . core . build . engine . buildinfo . BuildInfoRecorder buildInfoRecorder = com . facebook . buck . core . bu...
org . junit . Assert . assertEquals ( ( 3 * ( contents . length ) ) , buildInfoRecorder . getOutputSize ( ) )
testGetId ( ) { java . lang . String [ ] ids = new java . lang . String [ ] { "1-2" , "abc" } ; for ( java . lang . String id : ids ) { org . rioproject . impl . watch . Watch watch = construct1 ( id ) ; "<AssertPlaceHolder>" ; org . rioproject . impl . watch . Utils . close ( watch . getWatchDataSource ( ) ) ; } } get...
org . junit . Assert . assertEquals ( id , watch . getId ( ) )
testEdgeIdJsonSerialization ( ) { final org . batfish . datamodel . ospf . OspfNeighborConfigId r1i13 = new org . batfish . datamodel . ospf . OspfNeighborConfigId ( "r1" , org . batfish . datamodel . Configuration . DEFAULT_VRF_NAME , "1" , "i13" ) ; final org . batfish . datamodel . ospf . OspfNeighborConfigId r3i31 ...
org . junit . Assert . assertThat ( org . batfish . common . util . BatfishObjectMapper . clone ( edge , org . batfish . datamodel . ospf . OspfTopology . EdgeId . class ) , org . hamcrest . Matchers . equalTo ( edge ) )
test ( ) { cn . bc . spider . parser . FreeMarkerTemplateParser c = new cn . bc . spider . parser . FreeMarkerTemplateParser ( "${name}" ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; params . put ( "name" , ...
org . junit . Assert . assertEquals ( "dragon" , c . parse ( params ) )
testSetAndGetIntPropertyWithValidInt ( ) { int expectedValue = 5 ; configurator . setIntProperty ( propertyName , expectedValue ) ; "<AssertPlaceHolder>" ; } getIntProperty ( java . lang . String ) { return java . lang . Integer . decode ( list . getProperty ( name ) ) ; }
org . junit . Assert . assertEquals ( configurator . getIntProperty ( propertyName ) , expectedValue )
testGetType ( ) { org . jacorb . notification . interfaces . Message _event = factory_ . newMessage ( testPerson_ ) ; "<AssertPlaceHolder>" ; } getType ( ) { return org . jacorb . notification . interfaces . Message . TYPE_ANY ; }
org . junit . Assert . assertTrue ( ( ( _event . getType ( ) ) == ( org . jacorb . notification . interfaces . Message . TYPE_ANY ) ) )
testGetDeploymentJpeResourceData ( ) { org . camunda . bpm . engine . rest . Resource resource = org . camunda . bpm . engine . rest . helper . MockProvider . createMockDeploymentJpeResource ( ) ; org . camunda . bpm . engine . rest . List < org . camunda . bpm . engine . rest . Resource > resources = new org . camunda...
org . junit . Assert . assertNotNull ( responseContent )
testRowVectorGemm ( ) { org . nd4j . linalg . api . ndarray . INDArray linspace = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 , DataType . DOUBLE ) . reshape ( 1 , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray other = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 16 , 16 , DataType . DOUB...
org . junit . Assert . assertEquals ( assertion , result )
testVerifyAccessPublicResource ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setBoolean ( YarnConfiguration . SHARED_CACHE_ENABLED , true ) ; org . apache . hadoop . yarn . api . records . LocalResource resource = mock ( org . apache . hadoop . y...
org . junit . Assert . assertTrue ( spied . verifyAccess ( ) )
split_string_to_map ( ) { java . lang . String str = "firstName:John<sp>,<sp>lastName:Doe,<sp>age:56,<sp>address:1234<sp>Elm<sp>Street" ; java . util . Map < java . lang . String , java . lang . String > demographics = com . google . common . base . Splitter . on ( "," ) . trimResults ( ) . withKeyValueSeparator ( ":" ...
org . junit . Assert . assertEquals ( 4 , demographics . size ( ) )
testCanCallGetWindowHandlesAfterClosingAWindow ( ) { org . junit . Assume . assumeFalse ( ( ( ( org . openqa . selenium . testing . drivers . Browser . detect ( ) ) == ( org . openqa . selenium . testing . drivers . Browser . opera ) ) && ( org . openqa . selenium . testing . TestUtilities . getEffectivePlatform ( ) . ...
org . junit . Assert . assertEquals ( currentWindowHandles . size ( ) , allHandles . size ( ) )
oneElt_01 ( ) { java . util . List < java . lang . String > x = java . util . Arrays . asList ( "a" , "b" , "c" ) ; "<AssertPlaceHolder>" ; } oneElt ( java . util . Collection ) { return org . apache . jena . atlas . iterator . Iter . first ( collection . iterator ( ) ) ; }
org . junit . Assert . assertEquals ( "a" , oneElt ( x ) )
testChainWithSettingsMissingSecret ( ) { settings . remove ( org . sagebionetworks . aws . AbstractSynapseCredentialProvider . ORG_SAGEBIONETWORKS_STACK_IAM_ID ) ; when ( mockPropertyProvider . getMavenSettingsProperties ( ) ) . thenReturn ( settings ) ; when ( mockPropertyProvider . getSystemProperties ( ) ) . thenRet...
org . junit . Assert . assertNotNull ( creds )
specimen_can_be_transformed ( ) { final component . behaviours . TestTransformerSpecimen . Order overridingInstance = new component . behaviours . TestTransformerSpecimen . Order ( ) ; com . flextrade . jfixture . JFixture fixture = new com . flextrade . jfixture . JFixture ( ) ; fixture . behaviours ( ) . add ( new co...
org . junit . Assert . assertSame ( overridingInstance , order )
construction ( ) { java . lang . reflect . Field table = com . gs . collections . impl . set . mutable . primitive . BooleanHashSet . class . getDeclaredField ( "state" ) ; table . setAccessible ( true ) ; "<AssertPlaceHolder>" ; } get ( int ) { return this . delegate . get ( index ) ; }
org . junit . Assert . assertEquals ( 0 , table . get ( new com . gs . collections . impl . set . mutable . primitive . BooleanHashSet ( ) ) )
testAddInvalidBaseCalendar ( ) { org . libreplan . ws . calendars . api . BaseCalendarDTO bc1 = new org . libreplan . ws . calendars . api . BaseCalendarDTO ( getUniqueName ( ) , getUniqueName ( ) , null , calendarExceptions , new java . util . ArrayList ( ) ) ; org . libreplan . ws . calendars . api . BaseCalendarList...
org . junit . Assert . assertTrue ( instanceConstraintViolationsList . toString ( ) , ( ( instanceConstraintViolationsList . size ( ) ) == 1 ) )
testMapping ( ) { com . mycompany . dto . Source s = new com . mycompany . dto . Source ( ) ; s . setTest ( "5" ) ; com . mycompany . entities . Target t = SourceTargetMapper . MAPPER . toTarget ( s ) ; "<AssertPlaceHolder>" ; } getTesting ( ) { return testing ; }
org . junit . Assert . assertEquals ( 5 , ( ( long ) ( t . getTesting ( ) ) ) )
emptyIteratorAlwaysReturnsFalse ( ) { final org . apache . kafka . streams . state . internals . CompositeReadOnlyWindowStore < java . lang . Object , java . lang . Object > store = new org . apache . kafka . streams . state . internals . CompositeReadOnlyWindowStore ( new org . apache . kafka . test . StateStoreProvid...
org . junit . Assert . assertFalse ( windowStoreIterator . hasNext ( ) )
shouldParseComplexLiteralText2 ( ) { java . lang . String scriptFragment = "\"POST<sp>/index.html<sp>HTTP/1.1\\r\\nHost:<sp>localhost:8000\\r\\nUser-Agent:<sp>" + ( ( "Mozilla/5.0<sp>(Macintosh;<sp>Intel<sp>Mac<sp>OS<sp>X<sp>10.6;<sp>rv:8.0)<sp>Gecko/20100101<sp>Firefox/8.0\\r\\n" + "Accept:<sp>text/html,<sp>applicatio...
org . junit . Assert . assertEquals ( expected , actual )
isSameCause_singleArtifact_withBaseVersion_true ( ) { org . jenkinsci . plugins . pipeline . maven . MavenArtifact firstArtifact = new org . jenkinsci . plugins . pipeline . maven . MavenArtifact ( "com.example:my-jar:jar:1.0-20100529-1213-1" ) ; firstArtifact . setBaseVersion ( "1.0-SNAPSHOT" ) ; org . jenkinsci . plu...
org . junit . Assert . assertThat ( matchingArtifacts . isEmpty ( ) , org . hamcrest . Matchers . is ( false ) )
testGetParameters ( ) { org . lnu . is . domain . employee . type . EmployeeType entity = new org . lnu . is . domain . employee . type . EmployeeType ( ) ; java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; entity . setName ( name ) ; entity . setAbbrName ( abbrName ) ; java . util ....
org . junit . Assert . assertEquals ( expected , actual )
testFullyQualifiedException ( ) { spoon . reflect . factory . Factory factory = spoon . testing . utils . ModelUtils . createFactory ( ) ; spoon . reflect . declaration . CtClass < ? > clazz = factory . Code ( ) . createCodeSnippetStatement ( ( "" + ( ( ( "class<sp>X<sp>{" + "public<sp>void<sp>foo()<sp>{" ) + "<sp>try{...
org . junit . Assert . assertEquals ( 1 , tryStmt . getCatchers ( ) . size ( ) )
drupalServicesClient_attachFile_filesAttached ( ) { dk . i2m . converge . plugins . drupalclient . DrupalServicesClient client = new dk . i2m . converge . plugins . drupalclient . DrupalServicesClient ( dk . i2m . converge . plugins . drupalclient . DrupalServicesClientIT . DRUPAL_URL , dk . i2m . converge . plugins . ...
org . junit . Assert . assertEquals ( 1 , nodeFiles . size ( ) )
testDeleteValues ( ) { cPropManager . addKey ( platformType , "something" , "A<sp>thing" ) ; flushSession ( ) ; cPropManager . setValue ( platform . getEntityId ( ) , platformType . getId ( ) , "something" , "nothing" ) ; cPropManager . deleteValues ( platform . getEntityId ( ) . getType ( ) , platform . getEntityId ( ...
org . junit . Assert . assertTrue ( cPropManager . getEntries ( platform . getEntityId ( ) ) . isEmpty ( ) )
test ( ) { com . buschmais . xo . api . XOManager xoManager = getXOManager ( ) ; xoManager . currentTransaction ( ) . begin ( ) ; com . buschmais . xo . neo4j . test . issues . not_a_proxy . composite . A a = xoManager . create ( com . buschmais . xo . neo4j . test . issues . not_a_proxy . composite . A . class ) ; com...
org . junit . Assert . assertThat ( a . equals ( a . getB ( ) ) , org . hamcrest . Matchers . is ( false ) )